home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / curses~1.z / curses~1
Tape Archive  |  1992-10-29  |  317.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Tape Archive (archive/tar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), type ' ' Manual/, mode 000775 , uid 000147 , gid 000303 , size 00000000000 , seconds 04404326275 default
98% file data default
100% TrID Sybase iAnywhere database files default (weak)
100% lsar Tar default
100% gt2 Kopftext: 'Manual/' default (weak)
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4d 61 6e 75 61 6c 2f 00 | 00 00 00 00 00 00 00 00 |Manual/.|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 30 30 30 37 | 37 35 20 00 30 30 30 31 |....0007|75 .0001|
|00000070| 34 37 20 00 30 30 30 33 | 30 33 20 00 30 30 30 30 |47 .0003|03 .0000|
|00000080| 30 30 30 30 30 30 30 20 | 30 34 34 30 34 33 32 36 |0000000 |04404326|
|00000090| 32 37 35 20 30 30 36 30 | 32 37 00 20 20 00 00 00 |275 0060|27. ...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 4d 61 6e 75 61 6c 2f 4d | 61 6b 65 66 69 6c 65 00 |Manual/M|akefile.|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 30 30 30 36 | 36 34 20 00 30 30 30 31 |....0006|64 .0001|
|00000270| 34 37 20 00 30 30 30 33 | 30 33 20 00 30 30 30 30 |47 .0003|03 .0000|
|00000280| 30 30 30 33 33 34 35 20 | 30 34 31 30 33 37 32 33 |0003345 |04103723|
|00000290| 36 36 33 20 30 30 37 34 | 37 37 00 20 20 00 00 00 |663 0074|77. ...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 23 0a 23 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |#.# Copy|right 19|
|00000410| 38 30 20 4b 65 6e 6e 65 | 74 68 20 43 2e 20 52 2e |80 Kenne|th C. R.|
|00000420| 20 43 2e 20 41 72 6e 6f | 6c 64 20 61 6e 64 20 54 | C. Arno|ld and T|
|00000430| 68 65 20 52 65 67 65 6e | 74 73 20 6f 66 20 74 68 |he Regen|ts of th|
|00000440| 65 0a 23 20 55 6e 69 76 | 65 72 73 69 74 79 20 6f |e.# Univ|ersity o|
|00000450| 66 20 43 61 6c 69 66 6f | 72 6e 69 61 2e 20 20 50 |f Califo|rnia. P|
|00000460| 65 72 6d 69 73 73 69 6f | 6e 20 69 73 20 67 72 61 |ermissio|n is gra|
|00000470| 6e 74 65 64 20 74 6f 20 | 66 72 65 65 6c 79 0a 23 |nted to |freely.#|
|00000480| 20 64 69 73 74 72 69 62 | 75 74 65 20 63 75 72 73 | distrib|ute curs|
|00000490| 65 73 20 61 6e 64 20 69 | 74 73 20 64 6f 63 75 6d |es and i|ts docum|
|000004a0| 65 6e 74 61 74 69 6f 6e | 20 70 72 6f 76 69 64 65 |entation| provide|
|000004b0| 64 20 74 68 61 74 20 74 | 68 69 73 0a 23 20 6e 6f |d that t|his.# no|
|000004c0| 74 69 63 65 20 69 73 20 | 6c 65 66 74 20 69 6e 74 |tice is |left int|
|000004d0| 61 63 74 2e 0a 23 0a 23 | 09 40 28 23 29 4d 61 6b |act..#.#|.@(#)Mak|
|000004e0| 65 66 69 6c 65 09 36 2e | 32 20 28 42 65 72 6b 65 |efile.6.|2 (Berke|
|000004f0| 6c 65 79 29 20 34 2f 32 | 38 2f 38 36 0a 23 0a 23 |ley) 4/2|8/86.#.#|
|00000500| 09 6d 61 6b 65 66 69 6c | 65 20 66 6f 72 20 73 63 |.makefil|e for sc|
|00000510| 72 65 65 6e 20 70 61 63 | 6b 61 67 65 20 64 6f 63 |reen pac|kage doc|
|00000520| 75 6d 65 6e 74 61 74 69 | 6f 6e 0a 23 0a 4e 52 4f |umentati|on.#.NRO|
|00000530| 46 46 3d 09 6e 72 6f 66 | 66 0a 54 52 4f 46 46 3d |FF=.nrof|f.TROFF=|
|00000540| 09 70 74 72 6f 66 66 0a | 54 42 4c 3d 09 74 62 6c |.ptroff.|TBL=.tbl|
|00000550| 20 24 28 54 46 4c 41 47 | 53 29 0a 56 46 4f 4e 54 | $(TFLAG|S).VFONT|
|00000560| 3d 09 2f 75 73 72 2f 6c | 69 62 2f 76 66 6f 6e 74 |=./usr/l|ib/vfont|
|00000570| 65 64 70 72 0a 4e 46 4c | 41 47 53 3d 09 2d 54 63 |edpr.NFL|AGS=.-Tc|
|00000580| 72 74 0a 54 46 4c 41 47 | 53 3d 20 2d 50 6c 77 0a |rt.TFLAG|S= -Plw.|
|00000590| 43 46 4c 41 47 53 3d 09 | 2d 4f 20 2d 6e 20 2d 73 |CFLAGS=.|-O -n -s|
|000005a0| 0a 42 49 4e 44 49 52 3d | 09 2f 75 73 72 2f 64 6f |.BINDIR=|./usr/do|
|000005b0| 63 2f 70 73 31 2f 31 38 | 2e 63 75 72 73 65 73 0a |c/ps1/18|.curses.|
|000005c0| 0a 44 4f 43 53 3d 09 64 | 6f 63 2e 49 20 64 6f 63 |.DOCS=.d|oc.I doc|
|000005d0| 2e 49 49 20 64 6f 63 2e | 49 49 49 20 64 6f 63 2e |.II doc.|III doc.|
|000005e0| 49 56 0a 52 41 57 3d 09 | 6d 61 63 72 6f 73 20 63 |IV.RAW=.|macros c|
|000005f0| 5f 6d 61 63 72 6f 73 20 | 61 70 70 65 6e 2e 42 20 |_macros |appen.B |
|00000600| 61 70 70 65 6e 2e 41 20 | 61 70 70 65 6e 2e 43 20 |appen.A |appen.C |
|00000610| 69 6e 74 72 6f 2e 30 20 | 69 6e 74 72 6f 2e 31 20 |intro.0 |intro.1 |
|00000620| 5c 0a 09 69 6e 74 72 6f | 2e 32 20 69 6e 74 72 6f |\..intro|.2 intro|
|00000630| 2e 33 20 69 6e 74 72 6f | 2e 34 20 69 6e 74 72 6f |.3 intro|.4 intro|
|00000640| 2e 35 20 24 7b 44 4f 43 | 53 7d 20 63 75 72 73 65 |.5 ${DOC|S} curse|
|00000650| 73 2e 33 78 0a 0a 43 52 | 41 57 3d 09 77 69 6e 5f |s.3x..CR|AW=.win_|
|00000660| 73 74 2e 63 20 74 77 69 | 6e 6b 6c 65 31 2e 63 20 |st.c twi|nkle1.c |
|00000670| 74 77 69 6e 6b 6c 65 32 | 2e 63 20 6c 69 66 65 2e |twinkle2|.c life.|
|00000680| 63 0a 43 53 4f 55 52 43 | 45 3d 77 69 6e 5f 73 74 |c.CSOURC|E=win_st|
|00000690| 2e 67 72 20 74 77 69 6e | 6b 6c 65 31 2e 67 72 20 |.gr twin|kle1.gr |
|000006a0| 74 77 69 6e 6b 6c 65 32 | 2e 67 72 20 6c 69 66 65 |twinkle2|.gr life|
|000006b0| 2e 67 72 0a 53 4f 55 52 | 43 45 3d 09 6d 61 63 72 |.gr.SOUR|CE=.macr|
|000006c0| 6f 73 20 61 70 70 65 6e | 2e 41 2e 74 62 6c 20 61 |os appen|.A.tbl a|
|000006d0| 70 70 65 6e 2e 42 20 61 | 70 70 65 6e 2e 43 20 69 |ppen.B a|ppen.C i|
|000006e0| 6e 74 72 6f 2e 30 20 69 | 6e 74 72 6f 2e 31 20 5c |ntro.0 i|ntro.1 \|
|000006f0| 0a 09 69 6e 74 72 6f 2e | 32 2e 74 62 6c 20 69 6e |..intro.|2.tbl in|
|00000700| 74 72 6f 2e 33 20 69 6e | 74 72 6f 2e 34 20 69 6e |tro.3 in|tro.4 in|
|00000710| 74 72 6f 2e 35 0a 0a 2e | 53 55 46 46 49 58 45 53 |tro.5...|SUFFIXES|
|00000720| 3a 0a 2e 53 55 46 46 49 | 58 45 53 3a 20 2e 63 20 |:..SUFFI|XES: .c |
|00000730| 2e 67 72 0a 0a 23 0a 23 | 20 74 68 69 73 20 73 65 |.gr..#.#| this se|
|00000740| 63 74 69 6f 6e 20 66 6f | 72 6d 61 74 73 20 43 20 |ction fo|rmats C |
|00000750| 69 6e 70 75 74 20 73 6f | 75 72 63 65 20 69 6e 74 |input so|urce int|
|00000760| 6f 20 6e 69 63 65 20 74 | 72 6f 66 66 61 62 6c 65 |o nice t|roffable|
|00000770| 20 28 6f 72 20 6e 72 6f | 66 66 61 62 6c 65 29 0a | (or nro|ffable).|
|00000780| 23 20 76 65 72 73 69 6f | 6e 73 2e 20 20 49 74 20 |# versio|ns. It |
|00000790| 75 73 65 73 20 74 68 65 | 20 63 61 70 61 62 69 6c |uses the| capabil|
|000007a0| 69 74 65 73 20 6f 66 20 | 22 76 67 72 69 6e 64 22 |ites of |"vgrind"|
|000007b0| 2c 20 77 68 69 63 68 20 | 73 65 74 73 20 6b 65 79 |, which |sets key|
|000007c0| 77 6f 72 64 73 20 69 6e | 0a 23 20 62 6f 6c 64 20 |words in|.# bold |
|000007d0| 66 6f 6e 74 2c 20 61 6e | 64 20 63 6f 6d 6d 65 6e |font, an|d commen|
|000007e0| 74 73 20 69 6e 20 69 74 | 61 6c 69 63 73 2e 0a 23 |ts in it|alics..#|
|000007f0| 0a 0a 23 20 44 6f 6e 27 | 74 20 72 65 2d 72 75 6e |..# Don'|t re-run|
|00000800| 20 76 67 72 69 6e 64 20 | 75 6e 6c 65 73 73 20 79 | vgrind |unless y|
|00000810| 6f 75 20 77 61 6e 74 20 | 74 6f 20 70 61 74 63 68 |ou want |to patch|
|00000820| 20 74 68 65 20 6f 75 74 | 70 75 74 20 66 69 6c 65 | the out|put file|
|00000830| 73 2e 0a 2e 63 2e 67 72 | 3a 0a 09 24 7b 56 46 4f |s...c.gr|:..${VFO|
|00000840| 4e 54 7d 20 24 2a 2e 63 | 20 7c 20 67 72 65 70 20 |NT} $*.c| | grep |
|00000850| 2d 76 20 22 5e 27 77 68 | 22 20 3e 20 24 2a 2e 67 |-v "^'wh|" > $*.g|
|00000860| 72 0a 0a 74 72 6f 66 66 | 3a 20 4d 61 73 74 65 72 |r..troff|: Master|
|00000870| 20 6d 61 63 72 6f 73 20 | 24 7b 53 4f 55 52 43 45 | macros |${SOURCE|
|00000880| 7d 0a 09 24 7b 54 52 4f | 46 46 7d 20 2d 6d 65 20 |}..${TRO|FF} -me |
|00000890| 24 7b 54 46 4c 41 47 53 | 7d 20 4d 61 73 74 65 72 |${TFLAGS|} Master|
|000008a0| 20 3b 0a 0a 43 75 72 73 | 65 73 2e 64 6f 63 3a 20 | ;..Curs|es.doc: |
|000008b0| 24 7b 56 46 4f 4e 54 7d | 20 4d 61 73 74 65 72 20 |${VFONT}| Master |
|000008c0| 6d 61 63 72 6f 73 20 24 | 7b 53 4f 55 52 43 45 7d |macros $|{SOURCE}|
|000008d0| 0a 09 24 7b 4e 52 4f 46 | 46 7d 20 2d 6d 65 20 24 |..${NROF|F} -me $|
|000008e0| 7b 4e 46 4c 41 47 53 7d | 20 4d 61 73 74 65 72 20 |{NFLAGS}| Master |
|000008f0| 3e 20 43 75 72 73 65 73 | 2e 64 6f 63 0a 0a 24 7b |> Curses|.doc..${|
|00000900| 43 53 4f 55 52 43 45 7d | 3a 20 24 7b 56 46 4f 4e |CSOURCE}|: ${VFON|
|00000910| 54 7d 0a 0a 69 6e 74 72 | 6f 2e 35 3a 20 24 7b 44 |T}..intr|o.5: ${D|
|00000920| 4f 43 53 7d 0a 61 70 70 | 65 6e 2e 42 3a 20 77 69 |OCS}.app|en.B: wi|
|00000930| 6e 5f 73 74 2e 67 72 0a | 61 70 70 65 6e 2e 43 3a |n_st.gr.|appen.C:|
|00000940| 20 74 77 69 6e 6b 6c 65 | 31 2e 67 72 20 6c 69 66 | twinkle|1.gr lif|
|00000950| 65 2e 67 72 20 74 77 69 | 6e 6b 6c 65 32 2e 67 72 |e.gr twi|nkle2.gr|
|00000960| 0a 0a 69 6e 74 72 6f 2e | 32 2e 74 62 6c 3a 20 69 |..intro.|2.tbl: i|
|00000970| 6e 74 72 6f 2e 32 0a 09 | 24 7b 54 42 4c 7d 20 69 |ntro.2..|${TBL} i|
|00000980| 6e 74 72 6f 2e 32 20 3e | 20 69 6e 74 72 6f 2e 32 |ntro.2 >| intro.2|
|00000990| 2e 74 62 6c 0a 0a 61 70 | 70 65 6e 2e 41 2e 74 62 |.tbl..ap|pen.A.tb|
|000009a0| 6c 3a 20 61 70 70 65 6e | 2e 41 0a 09 24 7b 54 42 |l: appen|.A..${TB|
|000009b0| 4c 7d 20 61 70 70 65 6e | 2e 41 20 3e 20 61 70 70 |L} appen|.A > app|
|000009c0| 65 6e 2e 41 2e 74 62 6c | 0a 0a 73 70 65 6c 6c 3a |en.A.tbl|..spell:|
|000009d0| 20 24 7b 53 4f 55 52 43 | 45 7d 0a 09 2f 62 69 6e | ${SOURC|E}../bin|
|000009e0| 2f 63 73 68 20 2e 2f 53 | 70 65 6c 6c 69 74 20 24 |/csh ./S|pellit $|
|000009f0| 7b 53 4f 55 52 43 45 7d | 20 24 7b 44 4f 43 53 7d |{SOURCE}| ${DOCS}|
|00000a00| 0a 0a 69 6e 73 74 61 6c | 6c 3a 0a 09 63 70 20 4d |..instal|l:..cp M|
|00000a10| 61 6b 65 66 69 6c 65 20 | 24 7b 52 41 57 7d 20 24 |akefile |${RAW} $|
|00000a20| 7b 42 49 4e 44 49 52 7d | 0a 0a 61 72 3a 0a 09 61 |{BINDIR}|..ar:..a|
|00000a30| 72 20 63 72 76 20 63 75 | 72 64 6f 63 2e 61 72 20 |r crv cu|rdoc.ar |
|00000a40| 4d 61 73 74 65 72 20 24 | 7b 52 41 57 7d 20 24 7b |Master $|{RAW} ${|
|00000a50| 43 52 41 57 7d 20 4d 61 | 6b 65 66 69 6c 65 0a 0a |CRAW} Ma|kefile..|
|00000a60| 6c 70 72 3a 20 43 75 72 | 73 65 73 0a 09 2d 6c 70 |lpr: Cur|ses..-lp|
|00000a70| 72 20 43 75 72 73 65 73 | 20 3b 20 6c 70 71 0a 09 |r Curses| ; lpq..|
|00000a80| 2d 6c 70 71 0a 0a 63 6c | 65 61 6e 3a 0a 09 72 6d |-lpq..cl|ean:..rm|
|00000a90| 20 2d 66 20 24 7b 43 53 | 4f 55 52 43 45 7d 20 61 | -f ${CS|OURCE} a|
|00000aa0| 70 70 65 6e 2e 41 2e 74 | 62 6c 20 69 6e 74 72 6f |ppen.A.t|bl intro|
|00000ab0| 2e 32 2e 74 62 6c 20 63 | 75 72 73 65 73 2e 74 61 |.2.tbl c|urses.ta|
|00000ac0| 72 20 76 66 6f 6e 74 65 | 64 70 72 20 5c 0a 09 09 |r vfonte|dpr \...|
|00000ad0| 43 75 72 73 65 73 2e 64 | 6f 63 20 65 72 72 73 20 |Curses.d|oc errs |
|00000ae0| 45 72 72 73 0a 47 53 7d | 20 4d 61 73 74 65 72 20 |Errs.GS}| Master |
|00000af0| 3e 20 43 75 72 73 65 73 | 2e 64 6f 63 0a 0a 24 7b |> Curses|.doc..${|
|00000b00| 43 53 4f 55 52 43 45 7d | 3a 20 24 7b 56 46 4f 4e |CSOURCE}|: ${VFON|
|00000b10| 54 7d 0a 0a 69 6e 74 72 | 6f 2e 35 3a 20 24 7b 44 |T}..intr|o.5: ${D|
|00000b20| 4f 43 53 7d 0a 61 70 70 | 65 6e 2e 42 3a 20 77 69 |OCS}.app|en.B: wi|
|00000b30| 6e 5f 73 74 2e 67 72 0a | 61 70 70 65 6e 2e 43 3a |n_st.gr.|appen.C:|
|00000b40| 20 74 77 69 6e 6b 6c 65 | 31 2e 67 72 20 6c 69 66 | twinkle|1.gr lif|
|00000b50| 65 2e 67 72 20 74 77 69 | 6e 6b 6c 65 32 2e 67 72 |e.gr twi|nkle2.gr|
|00000b60| 0a 0a 69 6e 74 72 6f 2e | 32 2e 74 62 6c 3a 20 69 |..intro.|2.tbl: i|
|00000b70| 6e 74 72 6f 2e 32 0a 09 | 24 7b 54 42 4c 7d 20 69 |ntro.2..|${TBL} i|
|00000b80| 6e 74 72 6f 2e 32 20 3e | 20 69 6e 74 72 6f 2e 32 |ntro.2 >| intro.2|
|00000b90| 2e 74 62 6c 0a 0a 61 70 | 70 65 6e 2e 41 2e 74 62 |.tbl..ap|pen.A.tb|
|00000ba0| 6c 3a 20 61 70 70 65 6e | 2e 41 0a 09 24 7b 54 42 |l: appen|.A..${TB|
|00000bb0| 4c 7d 20 61 70 70 65 6e | 2e 41 20 3e 20 61 70 70 |L} appen|.A > app|
|00000bc0| 65 6e 2e 41 2e 74 62 6c | 0a 0a 73 70 65 6c 6c 3a |en.A.tbl|..spell:|
|00000bd0| 20 24 7b 53 4f 55 52 43 | 45 7d 0a 09 2f 62 69 6e | ${SOURC|E}../bin|
|00000be0| 2f 63 73 68 20 2e 2f 53 | 70 65 6c 6c 69 74 20 24 |/csh ./S|pellit $|
|00000bf0| 7b 53 4f 55 52 43 45 7d | 20 24 7b 44 4f 43 53 7d |{SOURCE}| ${DOCS}|
|00000c00| 4d 61 6e 75 61 6c 2f 4d | 61 73 74 65 72 00 00 00 |Manual/M|aster...|
|00000c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 30 30 30 36 | 36 34 20 00 30 30 30 31 |....0006|64 .0001|
|00000c70| 34 37 20 00 30 30 30 33 | 30 33 20 00 30 30 30 30 |47 .0003|03 .0000|
|00000c80| 30 30 30 31 30 30 30 20 | 30 34 31 30 33 37 32 32 |0001000 |04103722|
|00000c90| 33 33 31 20 30 30 37 31 | 36 36 00 20 20 00 00 00 |331 0071|66. ...|
|00000ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 2e 5c 22 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |.\" Copy|right 19|
|00000e10| 38 30 20 4b 65 6e 6e 65 | 74 68 20 43 2e 20 52 2e |80 Kenne|th C. R.|
|00000e20| 20 43 2e 20 41 72 6e 6f | 6c 64 20 61 6e 64 20 54 | C. Arno|ld and T|
|00000e30| 68 65 20 52 65 67 65 6e | 74 73 20 6f 66 20 74 68 |he Regen|ts of th|
|00000e40| 65 0a 2e 5c 22 20 55 6e | 69 76 65 72 73 69 74 79 |e..\" Un|iversity|
|00000e50| 20 6f 66 20 43 61 6c 69 | 66 6f 72 6e 69 61 2e 20 | of Cali|fornia. |
|00000e60| 20 50 65 72 6d 69 73 73 | 69 6f 6e 20 69 73 20 67 | Permiss|ion is g|
|00000e70| 72 61 6e 74 65 64 20 74 | 6f 20 66 72 65 65 6c 79 |ranted t|o freely|
|00000e80| 0a 2e 5c 22 20 64 69 73 | 74 72 69 62 75 74 65 20 |..\" dis|tribute |
|00000e90| 63 75 72 73 65 73 20 61 | 6e 64 20 69 74 73 20 64 |curses a|nd its d|
|00000ea0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 70 72 6f |ocumenta|tion pro|
|00000eb0| 76 69 64 65 64 20 74 68 | 61 74 20 74 68 69 73 0a |vided th|at this.|
|00000ec0| 2e 5c 22 20 6e 6f 74 69 | 63 65 20 69 73 20 6c 65 |.\" noti|ce is le|
|00000ed0| 66 74 20 69 6e 74 61 63 | 74 2e 0a 2e 5c 22 0a 2e |ft intac|t...\"..|
|00000ee0| 5c 22 09 40 28 23 29 4d | 61 73 74 65 72 09 36 2e |\".@(#)M|aster.6.|
|00000ef0| 32 20 28 42 65 72 6b 65 | 6c 65 79 29 20 34 2f 32 |2 (Berke|ley) 4/2|
|00000f00| 38 2f 38 36 0a 2e 5c 22 | 0a 2e 64 73 20 4c 6e 20 |8/86..\"|..ds Ln |
|00000f10| 53 63 72 65 65 6e 20 50 | 61 63 6b 61 67 65 0a 2e |Screen P|ackage..|
|00000f20| 73 6f 20 6d 61 63 72 6f | 73 0a 2e 73 6f 20 69 6e |so macro|s..so in|
|00000f30| 74 72 6f 2e 30 0a 2e 70 | 6e 20 33 0a 2e 62 70 0a |tro.0..p|n 3..bp.|
|00000f40| 2e 73 6f 20 69 6e 74 72 | 6f 2e 31 0a 2e 73 6f 20 |.so intr|o.1..so |
|00000f50| 69 6e 74 72 6f 2e 32 2e | 74 62 6c 0a 2e 73 6f 20 |intro.2.|tbl..so |
|00000f60| 69 6e 74 72 6f 2e 33 0a | 2e 73 6f 20 69 6e 74 72 |intro.3.|.so intr|
|00000f70| 6f 2e 34 0a 2e 73 6f 20 | 69 6e 74 72 6f 2e 35 0a |o.4..so |intro.5.|
|00000f80| 2e 73 6f 20 61 70 70 65 | 6e 2e 41 2e 74 62 6c 0a |.so appe|n.A.tbl.|
|00000f90| 2e 73 6f 20 63 5f 6d 61 | 63 72 6f 73 0a 2e 73 6f |.so c_ma|cros..so|
|00000fa0| 20 61 70 70 65 6e 2e 42 | 0a 2e 73 6f 20 61 70 70 | appen.B|..so app|
|00000fb0| 65 6e 2e 43 0a 2e 70 6e | 20 32 0a 2e 6f 68 20 27 |en.C..pn| 2..oh '|
|00000fc0| 5c 2a 28 4c 6e 27 27 50 | 53 31 3a 31 38 2d 25 27 |\*(Ln''P|S1:18-%'|
|00000fd0| 0a 2e 65 68 20 27 50 53 | 31 3a 31 38 2d 25 27 27 |..eh 'PS|1:18-%''|
|00000fe0| 5c 2a 28 4c 6e 27 0a 2e | 62 70 0a 2e 62 69 20 43 |\*(Ln'..|bp..bi C|
|00000ff0| 6f 6e 74 65 6e 74 73 0a | 2e 73 70 0a 2e 78 70 0a |ontents.|.sp..xp.|
|00001000| 4d 61 6e 75 61 6c 2f 61 | 70 70 65 6e 2e 41 00 00 |Manual/a|ppen.A..|
|00001010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 30 30 30 36 | 36 34 20 00 30 30 30 31 |....0006|64 .0001|
|00001070| 34 37 20 00 30 30 30 33 | 30 33 20 00 30 30 30 30 |47 .0003|03 .0000|
|00001080| 30 30 30 37 37 35 35 20 | 30 34 31 30 33 37 32 32 |0007755 |04103722|
|00001090| 34 32 35 20 30 30 37 32 | 35 30 00 20 20 00 00 00 |425 0072|50. ...|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 2e 5c 22 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |.\" Copy|right 19|
|00001210| 38 30 20 4b 65 6e 6e 65 | 74 68 20 43 2e 20 52 2e |80 Kenne|th C. R.|
|00001220| 20 43 2e 20 41 72 6e 6f | 6c 64 20 61 6e 64 20 54 | C. Arno|ld and T|
|00001230| 68 65 20 52 65 67 65 6e | 74 73 20 6f 66 20 74 68 |he Regen|ts of th|
|00001240| 65 0a 2e 5c 22 20 55 6e | 69 76 65 72 73 69 74 79 |e..\" Un|iversity|
|00001250| 20 6f 66 20 43 61 6c 69 | 66 6f 72 6e 69 61 2e 20 | of Cali|fornia. |
|00001260| 20 50 65 72 6d 69 73 73 | 69 6f 6e 20 69 73 20 67 | Permiss|ion is g|
|00001270| 72 61 6e 74 65 64 20 74 | 6f 20 66 72 65 65 6c 79 |ranted t|o freely|
|00001280| 0a 2e 5c 22 20 64 69 73 | 74 72 69 62 75 74 65 20 |..\" dis|tribute |
|00001290| 63 75 72 73 65 73 20 61 | 6e 64 20 69 74 73 20 64 |curses a|nd its d|
|000012a0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 70 72 6f |ocumenta|tion pro|
|000012b0| 76 69 64 65 64 20 74 68 | 61 74 20 74 68 69 73 0a |vided th|at this.|
|000012c0| 2e 5c 22 20 6e 6f 74 69 | 63 65 20 69 73 20 6c 65 |.\" noti|ce is le|
|000012d0| 66 74 20 69 6e 74 61 63 | 74 2e 0a 2e 5c 22 0a 2e |ft intac|t...\"..|
|000012e0| 5c 22 09 40 28 23 29 61 | 70 70 65 6e 2e 41 09 36 |\".@(#)a|ppen.A.6|
|000012f0| 2e 31 20 28 42 65 72 6b | 65 6c 65 79 29 20 34 2f |.1 (Berk|eley) 4/|
|00001300| 32 33 2f 38 36 0a 2e 5c | 22 0a 2e 69 65 20 74 20 |23/86..\|"..ie t |
|00001310| 2e 6f 68 20 27 5c 2a 28 | 4c 6e 20 41 70 70 65 6e |.oh '\*(|Ln Appen|
|00001320| 64 69 78 20 41 27 27 50 | 53 31 3a 31 38 2d 25 27 |dix A''P|S1:18-%'|
|00001330| 0a 2e 65 68 20 27 50 53 | 31 3a 31 38 2d 25 27 27 |..eh 'PS|1:18-%''|
|00001340| 5c 2a 28 4c 6e 20 41 70 | 70 65 6e 64 69 78 20 41 |\*(Ln Ap|pendix A|
|00001350| 27 0a 2e 65 6c 20 2e 68 | 65 20 27 27 5c 66 49 41 |'..el .h|e ''\fIA|
|00001360| 70 70 65 6e 64 69 78 20 | 41 5c 66 52 27 27 0a 2e |ppendix |A\fR''..|
|00001370| 62 70 0a 2e 28 78 0a 2e | 73 70 20 32 0a 2e 69 6e |bp..(x..|sp 2..in|
|00001380| 20 30 0a 2e 62 69 20 41 | 70 70 65 6e 64 69 78 65 | 0..bi A|ppendixe|
|00001390| 73 0a 2e 73 70 0a 2e 62 | 20 22 41 70 70 65 6e 64 |s..sp..b| "Append|
|000013a0| 69 78 20 41 22 0a 2e 29 | 78 0a 2e 6e 72 20 2a 20 |ix A"..)|x..nr * |
|000013b0| 31 0a 2e 73 68 20 31 20 | 22 43 61 70 61 62 69 6c |1..sh 1 |"Capabil|
|000013c0| 69 74 69 65 73 20 66 72 | 6f 6d 20 74 65 72 6d 63 |ities fr|om termc|
|000013d0| 61 70 22 20 31 0a 2e 73 | 68 20 32 20 44 69 73 63 |ap" 1..s|h 2 Disc|
|000013e0| 6c 61 69 6d 65 72 0a 2e | 70 70 0a 54 68 65 20 64 |laimer..|pp.The d|
|000013f0| 65 73 63 72 69 70 74 69 | 6f 6e 20 6f 66 20 74 65 |escripti|on of te|
|00001400| 72 6d 69 6e 61 6c 73 20 | 69 73 20 61 20 64 69 66 |rminals |is a dif|
|00001410| 66 69 63 75 6c 74 20 62 | 75 73 69 6e 65 73 73 2c |ficult b|usiness,|
|00001420| 0a 61 6e 64 20 77 65 20 | 6f 6e 6c 79 20 61 74 74 |.and we |only att|
|00001430| 65 6d 70 74 20 74 6f 20 | 73 75 6d 6d 61 72 69 7a |empt to |summariz|
|00001440| 65 20 74 68 65 20 63 61 | 70 61 62 69 6c 69 74 69 |e the ca|pabiliti|
|00001450| 65 73 20 68 65 72 65 3a | 0a 66 6f 72 20 61 20 66 |es here:|.for a f|
|00001460| 75 6c 6c 20 64 65 73 63 | 72 69 70 74 69 6f 6e 20 |ull desc|ription |
|00001470| 73 65 65 0a 2e 62 20 74 | 65 72 6d 63 61 70 20 28 |see..b t|ermcap (|
|00001480| 35 29 2e 0a 2e 73 68 20 | 32 20 4f 76 65 72 76 69 |5)...sh |2 Overvi|
|00001490| 65 77 0a 2e 70 70 0a 43 | 61 70 61 62 69 6c 69 74 |ew..pp.C|apabilit|
|000014a0| 69 65 73 20 66 72 6f 6d | 0a 2e 62 20 74 65 72 6d |ies from|..b term|
|000014b0| 63 61 70 0a 61 72 65 20 | 6f 66 20 74 68 72 65 65 |cap.are |of three|
|000014c0| 20 6b 69 6e 64 73 3a 0a | 73 74 72 69 6e 67 20 76 | kinds:.|string v|
|000014d0| 61 6c 75 65 64 20 6f 70 | 74 69 6f 6e 73 2c 0a 6e |alued op|tions,.n|
|000014e0| 75 6d 65 72 69 63 20 76 | 61 6c 75 65 64 20 6f 70 |umeric v|alued op|
|000014f0| 74 69 6f 6e 73 2c 0a 61 | 6e 64 20 62 6f 6f 6c 65 |tions,.a|nd boole|
|00001500| 61 6e 20 6f 70 74 69 6f | 6e 73 2e 0a 54 68 65 20 |an optio|ns..The |
|00001510| 73 74 72 69 6e 67 20 76 | 61 6c 75 65 64 20 6f 70 |string v|alued op|
|00001520| 74 69 6f 6e 73 20 61 72 | 65 20 74 68 65 20 6d 6f |tions ar|e the mo|
|00001530| 73 74 20 63 6f 6d 70 6c | 69 63 61 74 65 64 2c 0a |st compl|icated,.|
|00001540| 73 69 6e 63 65 20 74 68 | 65 79 20 6d 61 79 20 69 |since th|ey may i|
|00001550| 6e 63 6c 75 64 65 20 70 | 61 64 64 69 6e 67 20 69 |nclude p|adding i|
|00001560| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2c 0a 77 68 69 63 |nformati|on,.whic|
|00001570| 68 20 77 65 20 64 65 73 | 63 72 69 62 65 20 6e 6f |h we des|cribe no|
|00001580| 77 2e 0a 2e 70 70 0a 49 | 6e 74 65 6c 6c 69 67 65 |w...pp.I|ntellige|
|00001590| 6e 74 20 74 65 72 6d 69 | 6e 61 6c 73 20 6f 66 74 |nt termi|nals oft|
|000015a0| 65 6e 20 72 65 71 75 69 | 72 65 20 70 61 64 64 69 |en requi|re paddi|
|000015b0| 6e 67 20 6f 6e 20 69 6e | 74 65 6c 6c 69 67 65 6e |ng on in|telligen|
|000015c0| 74 20 6f 70 65 72 61 74 | 69 6f 6e 73 0a 61 74 20 |t operat|ions.at |
|000015d0| 68 69 67 68 20 28 61 6e | 64 20 73 6f 6d 65 74 69 |high (an|d someti|
|000015e0| 6d 65 73 20 65 76 65 6e | 20 6c 6f 77 29 20 73 70 |mes even| low) sp|
|000015f0| 65 65 64 2e 0a 54 68 69 | 73 20 69 73 20 73 70 65 |eed..Thi|s is spe|
|00001600| 63 69 66 69 65 64 20 62 | 79 20 61 20 6e 75 6d 62 |cified b|y a numb|
|00001610| 65 72 20 62 65 66 6f 72 | 65 20 74 68 65 20 73 74 |er befor|e the st|
|00001620| 72 69 6e 67 20 69 6e 20 | 74 68 65 20 63 61 70 61 |ring in |the capa|
|00001630| 62 69 6c 69 74 79 2c 0a | 61 6e 64 20 68 61 73 20 |bility,.|and has |
|00001640| 6d 65 61 6e 69 6e 67 20 | 66 6f 72 20 74 68 65 20 |meaning |for the |
|00001650| 63 61 70 61 62 69 6c 69 | 74 69 65 73 20 77 68 69 |capabili|ties whi|
|00001660| 63 68 20 68 61 76 65 20 | 61 0a 2e 62 20 50 0a 61 |ch have |a..b P.a|
|00001670| 74 20 74 68 65 20 66 72 | 6f 6e 74 20 6f 66 20 74 |t the fr|ont of t|
|00001680| 68 65 69 72 20 63 6f 6d | 6d 65 6e 74 2e 0a 54 68 |heir com|ment..Th|
|00001690| 69 73 20 6e 6f 72 6d 61 | 6c 6c 79 20 69 73 20 61 |is norma|lly is a|
|000016a0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6d 69 6c 6c 69 | number |of milli|
|000016b0| 73 65 63 6f 6e 64 73 20 | 74 6f 20 70 61 64 20 74 |seconds |to pad t|
|000016c0| 68 65 20 6f 70 65 72 61 | 74 69 6f 6e 2e 0a 49 6e |he opera|tion..In|
|000016d0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 73 79 73 | the cur|rent sys|
|000016e0| 74 65 6d 20 77 68 69 63 | 68 20 68 61 73 20 6e 6f |tem whic|h has no|
|000016f0| 20 74 72 75 65 20 70 72 | 6f 67 72 61 6d 6d 61 62 | true pr|ogrammab|
|00001700| 6c 65 20 64 65 6c 61 79 | 73 2c 0a 77 65 20 64 6f |le delay|s,.we do|
|00001710| 20 74 68 69 73 20 62 79 | 20 73 65 6e 64 69 6e 67 | this by| sending|
|00001720| 20 61 20 73 65 71 75 65 | 6e 63 65 20 6f 66 20 70 | a seque|nce of p|
|00001730| 61 64 20 63 68 61 72 61 | 63 74 65 72 73 0a 28 6e |ad chara|cters.(n|
|00001740| 6f 72 6d 61 6c 6c 79 20 | 6e 75 6c 6c 73 2c 20 62 |ormally |nulls, b|
|00001750| 75 74 20 63 61 6e 20 62 | 65 20 63 68 61 6e 67 65 |ut can b|e change|
|00001760| 64 0a 28 73 70 65 63 69 | 66 69 65 64 20 62 79 0a |d.(speci|fied by.|
|00001770| 2e 69 20 50 43 20 29 29 | 2e 0a 49 6e 20 73 6f 6d |.i PC ))|..In som|
|00001780| 65 20 63 61 73 65 73 2c | 20 74 68 65 20 70 61 64 |e cases,| the pad|
|00001790| 20 69 73 20 62 65 74 74 | 65 72 20 63 6f 6d 70 75 | is bett|er compu|
|000017a0| 74 65 64 20 61 73 20 73 | 6f 6d 65 20 6e 75 6d 62 |ted as s|ome numb|
|000017b0| 65 72 20 6f 66 20 6d 69 | 6c 6c 69 73 65 63 6f 6e |er of mi|llisecon|
|000017c0| 64 73 0a 74 69 6d 65 73 | 20 74 68 65 20 6e 75 6d |ds.times| the num|
|000017d0| 62 65 72 20 6f 66 20 61 | 66 66 65 63 74 65 64 20 |ber of a|ffected |
|000017e0| 6c 69 6e 65 73 0a 28 74 | 6f 20 74 68 65 20 62 6f |lines.(t|o the bo|
|000017f0| 74 74 6f 6d 20 6f 66 20 | 74 68 65 20 73 63 72 65 |ttom of |the scre|
|00001800| 65 6e 20 75 73 75 61 6c | 6c 79 2c 0a 65 78 63 65 |en usual|ly,.exce|
|00001810| 70 74 20 77 68 65 6e 20 | 74 65 72 6d 69 6e 61 6c |pt when |terminal|
|00001820| 73 20 68 61 76 65 20 69 | 6e 73 65 72 74 20 6d 6f |s have i|nsert mo|
|00001830| 64 65 73 20 77 68 69 63 | 68 20 77 69 6c 6c 20 73 |des whic|h will s|
|00001840| 68 69 66 74 20 73 65 76 | 65 72 61 6c 20 6c 69 6e |hift sev|eral lin|
|00001850| 65 73 2e 29 0a 54 68 69 | 73 20 69 73 20 73 70 65 |es.).Thi|s is spe|
|00001860| 63 69 66 69 65 64 20 61 | 73 2c 0a 69 20 65 2e 67 |cified a|s,.i e.g|
|00001870| 2e 20 2c 0a 2e 62 20 31 | 32 2a 20 2e 0a 62 65 66 |. ,..b 1|2* ..bef|
|00001880| 6f 72 65 20 74 68 65 20 | 63 61 70 61 62 69 6c 69 |ore the |capabili|
|00001890| 74 79 2c 0a 74 6f 20 73 | 61 79 20 31 32 20 6d 69 |ty,.to s|ay 12 mi|
|000018a0| 6c 6c 69 73 65 63 6f 6e | 64 73 20 70 65 72 20 61 |llisecon|ds per a|
|000018b0| 66 66 65 63 74 65 64 20 | 77 68 61 74 65 76 65 72 |ffected |whatever|
|000018c0| 0a 28 63 75 72 72 65 6e | 74 6c 79 20 61 6c 77 61 |.(curren|tly alwa|
|000018d0| 79 73 20 6c 69 6e 65 29 | 2e 0a 43 61 70 61 62 69 |ys line)|..Capabi|
|000018e0| 6c 69 74 69 65 73 20 77 | 68 65 72 65 20 74 68 69 |lities w|here thi|
|000018f0| 73 20 6d 61 6b 65 73 20 | 73 65 6e 73 65 20 73 61 |s makes |sense sa|
|00001900| 79 0a 2e 62 20 50 2a 20 | 2e 0a 2e 73 70 0a 2e 73 |y..b P* |...sp..s|
|00001910| 68 20 32 20 22 56 61 72 | 69 61 62 6c 65 73 20 53 |h 2 "Var|iables S|
|00001920| 65 74 20 42 79 20 73 65 | 74 74 65 72 6d 28 29 22 |et By se|tterm()"|
|00001930| 0a 2e 54 53 20 48 0a 63 | 20 73 20 73 20 73 0a 6c |..TS H.c| s s s.l|
|00001940| 20 6c 20 6c 20 6c 2e 0a | 76 61 72 69 61 62 6c 65 | l l l..|variable|
|00001950| 73 20 73 65 74 20 62 79 | 20 5c 66 49 73 65 74 74 |s set by| \fIsett|
|00001960| 65 72 6d 28 29 5c 66 52 | 0a 0a 54 79 70 65 09 4e |erm()\fR|..Type.N|
|00001970| 61 6d 65 09 50 61 64 09 | 44 65 73 63 72 69 70 74 |ame.Pad.|Descript|
|00001980| 69 6f 6e 0a 5f 0a 2e 54 | 48 0a 63 68 61 72 20 2a |ion._..T|H.char *|
|00001990| 09 41 4c 09 50 2a 09 41 | 64 64 20 6e 65 77 20 62 |.AL.P*.A|dd new b|
|000019a0| 6c 61 6e 6b 20 4c 69 6e | 65 0a 62 6f 6f 6c 09 41 |lank Lin|e.bool.A|
|000019b0| 4d 09 09 41 75 74 6f 6d | 61 74 69 63 20 4d 61 72 |M..Autom|atic Mar|
|000019c0| 67 69 6e 73 0a 63 68 61 | 72 20 2a 09 42 43 09 09 |gins.cha|r *.BC..|
|000019d0| 42 61 63 6b 20 43 75 72 | 73 6f 72 20 6d 6f 76 65 |Back Cur|sor move|
|000019e0| 6d 65 6e 74 0a 62 6f 6f | 6c 09 42 53 09 09 42 61 |ment.boo|l.BS..Ba|
|000019f0| 63 6b 53 70 61 63 65 20 | 77 6f 72 6b 73 0a 63 68 |ckSpace |works.ch|
|00001a00| 61 72 20 2a 09 42 54 09 | 50 09 42 61 63 6b 20 54 |ar *.BT.|P.Back T|
|00001a10| 61 62 0a 62 6f 6f 6c 09 | 43 41 09 09 43 75 72 73 |ab.bool.|CA..Curs|
|00001a20| 6f 72 20 41 64 64 72 65 | 73 73 61 62 6c 65 0a 63 |or Addre|ssable.c|
|00001a30| 68 61 72 20 2a 09 43 44 | 09 50 2a 09 43 6c 65 61 |har *.CD|.P*.Clea|
|00001a40| 72 20 74 6f 20 65 6e 64 | 20 6f 66 20 44 69 73 70 |r to end| of Disp|
|00001a50| 6c 61 79 0a 63 68 61 72 | 20 2a 09 43 45 09 50 09 |lay.char| *.CE.P.|
|00001a60| 43 6c 65 61 72 20 74 6f | 20 45 6e 64 20 6f 66 20 |Clear to| End of |
|00001a70| 6c 69 6e 65 0a 63 68 61 | 72 20 2a 09 43 4c 09 50 |line.cha|r *.CL.P|
|00001a80| 2a 09 43 4c 65 61 72 20 | 73 63 72 65 65 6e 0a 63 |*.CLear |screen.c|
|00001a90| 68 61 72 20 2a 09 43 4d | 09 50 09 43 75 72 73 6f |har *.CM|.P.Curso|
|00001aa0| 72 20 4d 6f 74 69 6f 6e | 0a 63 68 61 72 20 2a 09 |r Motion|.char *.|
|00001ab0| 44 43 09 50 2a 09 44 65 | 6c 65 74 65 20 43 68 61 |DC.P*.De|lete Cha|
|00001ac0| 72 61 63 74 65 72 0a 63 | 68 61 72 20 2a 09 44 4c |racter.c|har *.DL|
|00001ad0| 09 50 2a 09 44 65 6c 65 | 74 65 20 4c 69 6e 65 20 |.P*.Dele|te Line |
|00001ae0| 73 65 71 75 65 6e 63 65 | 0a 63 68 61 72 20 2a 09 |sequence|.char *.|
|00001af0| 44 4d 09 09 44 65 6c 65 | 74 65 20 4d 6f 64 65 20 |DM..Dele|te Mode |
|00001b00| 28 65 6e 74 65 72 29 0a | 63 68 61 72 20 2a 09 44 |(enter).|char *.D|
|00001b10| 4f 09 09 44 4f 77 6e 20 | 6c 69 6e 65 20 73 65 71 |O..DOwn |line seq|
|00001b20| 75 65 6e 63 65 0a 63 68 | 61 72 20 2a 09 45 44 09 |uence.ch|ar *.ED.|
|00001b30| 09 45 6e 64 20 44 65 6c | 65 74 65 20 6d 6f 64 65 |.End Del|ete mode|
|00001b40| 0a 62 6f 6f 6c 09 45 4f | 09 09 63 61 6e 20 45 72 |.bool.EO|..can Er|
|00001b50| 61 73 65 20 4f 76 65 72 | 73 74 72 69 6b 65 73 20 |ase Over|strikes |
|00001b60| 77 69 74 68 20 5c 27 20 | 5c 27 0a 63 68 61 72 20 |with \' |\'.char |
|00001b70| 2a 09 45 49 09 09 45 6e | 64 20 49 6e 73 65 72 74 |*.EI..En|d Insert|
|00001b80| 20 6d 6f 64 65 0a 63 68 | 61 72 20 2a 09 48 4f 09 | mode.ch|ar *.HO.|
|00001b90| 09 48 4f 6d 65 20 63 75 | 72 73 6f 72 0a 62 6f 6f |.HOme cu|rsor.boo|
|00001ba0| 6c 09 48 5a 09 09 48 61 | 5a 65 6c 74 69 6e 65 20 |l.HZ..Ha|Zeltine |
|00001bb0| 7e 20 62 72 61 69 6e 64 | 61 6d 61 67 65 0a 63 68 |~ braind|amage.ch|
|00001bc0| 61 72 20 2a 09 49 43 09 | 50 09 49 6e 73 65 72 74 |ar *.IC.|P.Insert|
|00001bd0| 20 43 68 61 72 61 63 74 | 65 72 0a 62 6f 6f 6c 09 | Charact|er.bool.|
|00001be0| 49 4e 09 09 49 6e 73 65 | 72 74 2d 4e 75 6c 6c 20 |IN..Inse|rt-Null |
|00001bf0| 62 6c 65 73 73 69 6e 67 | 0a 63 68 61 72 20 2a 09 |blessing|.char *.|
|00001c00| 49 4d 09 09 65 6e 74 65 | 72 20 49 6e 73 65 72 74 |IM..ente|r Insert|
|00001c10| 20 4d 6f 64 65 20 28 49 | 43 20 75 73 75 61 6c 6c | Mode (I|C usuall|
|00001c20| 79 20 73 65 74 2c 20 74 | 6f 6f 29 0a 63 68 61 72 |y set, t|oo).char|
|00001c30| 20 2a 09 49 50 09 50 2a | 09 50 61 64 20 61 66 74 | *.IP.P*|.Pad aft|
|00001c40| 65 72 20 63 68 61 72 20 | 49 6e 73 65 72 74 65 64 |er char |Inserted|
|00001c50| 20 75 73 69 6e 67 20 49 | 4d 2b 49 45 0a 63 68 61 | using I|M+IE.cha|
|00001c60| 72 20 2a 09 4c 4c 09 09 | 71 75 69 63 6b 20 74 6f |r *.LL..|quick to|
|00001c70| 20 4c 61 73 74 20 4c 69 | 6e 65 2c 20 63 6f 6c 75 | Last Li|ne, colu|
|00001c80| 6d 6e 20 30 0a 63 68 61 | 72 20 2a 09 4d 41 09 09 |mn 0.cha|r *.MA..|
|00001c90| 63 74 72 6c 20 63 68 61 | 72 61 63 74 65 72 20 4d |ctrl cha|racter M|
|00001ca0| 41 70 20 66 6f 72 20 63 | 6d 64 20 6d 6f 64 65 0a |Ap for c|md mode.|
|00001cb0| 62 6f 6f 6c 09 4d 49 09 | 09 63 61 6e 20 4d 6f 76 |bool.MI.|.can Mov|
|00001cc0| 65 20 69 6e 20 49 6e 73 | 65 72 74 20 6d 6f 64 65 |e in Ins|ert mode|
|00001cd0| 0a 62 6f 6f 6c 09 4e 43 | 09 09 4e 6f 20 43 72 3a |.bool.NC|..No Cr:|
|00001ce0| 20 5c 65 72 20 73 65 6e | 64 73 20 5c 65 72 5c 65 | \er sen|ds \er\e|
|00001cf0| 6e 20 74 68 65 6e 20 65 | 61 74 73 20 5c 65 6e 0a |n then e|ats \en.|
|00001d00| 63 68 61 72 20 2a 09 4e | 44 09 09 4e 6f 6e 2d 44 |char *.N|D..Non-D|
|00001d10| 65 73 74 72 75 63 74 69 | 76 65 20 73 70 61 63 65 |estructi|ve space|
|00001d20| 0a 62 6f 6f 6c 09 4f 53 | 09 09 4f 76 65 72 53 74 |.bool.OS|..OverSt|
|00001d30| 72 69 6b 65 20 77 6f 72 | 6b 73 0a 63 68 61 72 09 |rike wor|ks.char.|
|00001d40| 50 43 09 09 50 61 64 20 | 43 68 61 72 61 63 74 65 |PC..Pad |Characte|
|00001d50| 72 0a 63 68 61 72 20 2a | 09 53 45 09 09 53 74 61 |r.char *|.SE..Sta|
|00001d60| 6e 64 6f 75 74 20 45 6e | 64 20 28 6d 61 79 20 6c |ndout En|d (may l|
|00001d70| 65 61 76 65 20 73 70 61 | 63 65 29 0a 63 68 61 72 |eave spa|ce).char|
|00001d80| 20 2a 09 53 46 09 50 09 | 53 63 72 6f 6c 6c 20 46 | *.SF.P.|Scroll F|
|00001d90| 6f 72 77 61 72 64 73 0a | 63 68 61 72 20 2a 09 53 |orwards.|char *.S|
|00001da0| 4f 09 09 53 74 61 6e 64 | 20 4f 75 74 20 62 65 67 |O..Stand| Out beg|
|00001db0| 69 6e 20 28 6d 61 79 20 | 6c 65 61 76 65 20 73 70 |in (may |leave sp|
|00001dc0| 61 63 65 29 0a 63 68 61 | 72 20 2a 09 53 52 09 50 |ace).cha|r *.SR.P|
|00001dd0| 09 53 63 72 6f 6c 6c 20 | 69 6e 20 52 65 76 65 72 |.Scroll |in Rever|
|00001de0| 73 65 0a 63 68 61 72 20 | 2a 09 54 41 09 50 09 54 |se.char |*.TA.P.T|
|00001df0| 41 62 20 28 6e 6f 74 20 | 5e 49 20 6f 72 20 77 69 |Ab (not |^I or wi|
|00001e00| 74 68 20 70 61 64 64 69 | 6e 67 29 0a 63 68 61 72 |th paddi|ng).char|
|00001e10| 20 2a 09 54 45 09 09 54 | 65 72 6d 69 6e 61 6c 20 | *.TE..T|erminal |
|00001e20| 61 64 64 72 65 73 73 20 | 65 6e 61 62 6c 65 20 45 |address |enable E|
|00001e30| 6e 64 69 6e 67 20 73 65 | 71 75 65 6e 63 65 0a 63 |nding se|quence.c|
|00001e40| 68 61 72 20 2a 09 54 49 | 09 09 54 65 72 6d 69 6e |har *.TI|..Termin|
|00001e50| 61 6c 20 61 64 64 72 65 | 73 73 20 65 6e 61 62 6c |al addre|ss enabl|
|00001e60| 65 20 49 6e 69 74 69 61 | 6c 69 7a 61 74 69 6f 6e |e Initia|lization|
|00001e70| 0a 63 68 61 72 20 2a 09 | 55 43 09 09 55 6e 64 65 |.char *.|UC..Unde|
|00001e80| 72 6c 69 6e 65 20 61 20 | 73 69 6e 67 6c 65 20 43 |rline a |single C|
|00001e90| 68 61 72 61 63 74 65 72 | 0a 63 68 61 72 20 2a 09 |haracter|.char *.|
|00001ea0| 55 45 09 09 55 6e 64 65 | 72 6c 69 6e 65 20 45 6e |UE..Unde|rline En|
|00001eb0| 64 69 6e 67 20 73 65 71 | 75 65 6e 63 65 0a 62 6f |ding seq|uence.bo|
|00001ec0| 6f 6c 09 55 4c 09 09 55 | 6e 64 65 72 4c 69 6e 69 |ol.UL..U|nderLini|
|00001ed0| 6e 67 20 77 6f 72 6b 73 | 20 65 76 65 6e 20 74 68 |ng works| even th|
|00001ee0| 6f 75 67 68 20 21 4f 53 | 0a 63 68 61 72 20 2a 09 |ough !OS|.char *.|
|00001ef0| 55 50 09 09 55 50 6c 69 | 6e 65 0a 63 68 61 72 20 |UP..UPli|ne.char |
|00001f00| 2a 09 55 53 09 09 55 6e | 64 65 72 6c 69 6e 65 20 |*.US..Un|derline |
|00001f10| 53 74 61 72 74 69 6e 67 | 20 73 65 71 75 65 6e 63 |Starting| sequenc|
|00001f20| 65 0a 63 68 61 72 20 2a | 09 56 42 09 09 56 69 73 |e.char *|.VB..Vis|
|00001f30| 69 62 6c 65 20 42 65 6c | 6c 0a 63 68 61 72 20 2a |ible Bel|l.char *|
|00001f40| 09 56 45 09 09 56 69 73 | 75 61 6c 20 45 6e 64 20 |.VE..Vis|ual End |
|00001f50| 73 65 71 75 65 6e 63 65 | 0a 63 68 61 72 20 2a 09 |sequence|.char *.|
|00001f60| 56 53 09 09 56 69 73 75 | 61 6c 20 53 74 61 72 74 |VS..Visu|al Start|
|00001f70| 20 73 65 71 75 65 6e 63 | 65 0a 62 6f 6f 6c 09 58 | sequenc|e.bool.X|
|00001f80| 4e 09 09 61 20 4e 65 77 | 6c 69 6e 65 20 67 65 74 |N..a New|line get|
|00001f90| 73 20 65 61 74 65 6e 20 | 61 66 74 65 72 20 77 72 |s eaten |after wr|
|00001fa0| 61 70 0a 2e 54 45 0a 4e | 61 6d 65 73 20 73 74 61 |ap..TE.N|ames sta|
|00001fb0| 72 74 69 6e 67 20 77 69 | 74 68 0a 2e 62 69 20 58 |rting wi|th..bi X|
|00001fc0| 0a 61 72 65 20 72 65 73 | 65 72 76 65 64 20 66 6f |.are res|erved fo|
|00001fd0| 72 20 73 65 76 65 72 65 | 6c 79 20 6e 61 75 73 65 |r severe|ly nause|
|00001fe0| 6f 75 73 20 67 6c 69 74 | 63 68 65 73 0a 2e 70 70 |ous glit|ches..pp|
|00001ff0| 0a 46 6f 72 20 70 75 72 | 70 6f 73 65 73 20 6f 66 |.For pur|poses of|
|00002000| 0a 2e 46 6e 20 73 74 61 | 6e 64 6f 75 74 20 2c 0a |..Fn sta|ndout ,.|
|00002010| 69 66 0a 2e 46 6e 20 53 | 47 0a 69 73 20 6e 6f 74 |if..Fn S|G.is not|
|00002020| 20 30 2c 0a 2e 46 6e 20 | 53 4f 0a 69 73 20 73 65 | 0,..Fn |SO.is se|
|00002030| 74 20 74 6f 0a 2e 46 6e | 20 4e 55 4c 4c 20 2c 0a |t to..Fn| NULL ,.|
|00002040| 61 6e 64 20 69 66 0a 2e | 46 6e 20 55 47 0a 69 73 |and if..|Fn UG.is|
|00002050| 20 6e 6f 74 0a 2e 46 6e | 20 30 20 2c 0a 2e 46 6e | not..Fn| 0 ,..Fn|
|00002060| 20 55 53 0a 69 73 20 73 | 65 74 20 74 6f 0a 2e 46 | US.is s|et to..F|
|00002070| 6e 20 4e 55 4c 4c 20 2e | 0a 49 66 2c 20 61 66 74 |n NULL .|.If, aft|
|00002080| 65 72 20 74 68 69 73 2c | 0a 2e 46 6e 20 53 4f 0a |er this,|..Fn SO.|
|00002090| 69 73 0a 2e 46 6e 20 4e | 55 4c 4c 20 2c 0a 61 6e |is..Fn N|ULL ,.an|
|000020a0| 64 0a 2e 46 6e 20 55 53 | 0a 69 73 20 6e 6f 74 2c |d..Fn US|.is not,|
|000020b0| 0a 2e 46 6e 20 53 4f 0a | 69 73 20 73 65 74 20 74 |..Fn SO.|is set t|
|000020c0| 6f 20 62 65 0a 2e 46 6e | 20 55 53 20 2c 0a 61 6e |o be..Fn| US ,.an|
|000020d0| 64 0a 2e 46 6e 20 53 45 | 0a 69 73 20 73 65 74 20 |d..Fn SE|.is set |
|000020e0| 74 6f 20 62 65 0a 2e 46 | 6e 20 55 45 20 2e 0a 2e |to be..F|n UE ...|
|000020f0| 73 68 20 32 20 22 56 61 | 72 69 61 62 6c 65 73 20 |sh 2 "Va|riables |
|00002100| 53 65 74 20 42 79 20 67 | 65 74 74 6d 6f 64 65 28 |Set By g|ettmode(|
|00002110| 29 22 0a 2e 54 53 20 48 | 0a 63 20 73 20 73 0a 6c |)"..TS H|.c s s.l|
|00002120| 20 6c 20 6c 2e 0a 76 61 | 72 69 61 62 6c 65 73 20 | l l..va|riables |
|00002130| 73 65 74 20 62 79 20 5c | 66 49 67 65 74 74 6d 6f |set by \|fIgettmo|
|00002140| 64 65 28 29 5c 66 52 0a | 0a 74 79 70 65 09 6e 61 |de()\fR.|.type.na|
|00002150| 6d 65 09 64 65 73 63 72 | 69 70 74 69 6f 6e 0a 5f |me.descr|iption._|
|00002160| 0a 2e 54 48 0a 62 6f 6f | 6c 09 4e 4f 4e 4c 09 54 |..TH.boo|l.NONL.T|
|00002170| 65 72 6d 20 63 61 6e 27 | 74 20 68 61 63 6b 20 6c |erm can'|t hack l|
|00002180| 69 6e 65 66 65 65 64 73 | 20 64 6f 69 6e 67 20 61 |inefeeds| doing a|
|00002190| 20 43 52 0a 62 6f 6f 6c | 09 47 54 09 47 74 74 79 | CR.bool|.GT.Gtty|
|000021a0| 20 69 6e 64 69 63 61 74 | 65 73 20 54 61 62 73 0a | indicat|es Tabs.|
|000021b0| 62 6f 6f 6c 09 55 50 50 | 45 52 43 41 53 45 09 54 |bool.UPP|ERCASE.T|
|000021c0| 65 72 6d 69 6e 61 6c 20 | 67 65 6e 65 72 61 74 65 |erminal |generate|
|000021d0| 73 20 6f 6e 6c 79 20 75 | 70 70 65 72 63 61 73 65 |s only u|ppercase|
|000021e0| 20 6c 65 74 74 65 72 73 | 0a 2e 54 45 0a 2e 70 70 | letters|..TE..pp|
|000021f0| 0a 46 6f 72 20 70 75 72 | 70 6f 73 65 73 20 6f 66 |.For pur|poses of|
|00002200| 4d 61 6e 75 61 6c 2f 61 | 70 70 65 6e 2e 42 00 00 |Manual/a|ppen.B..|
|00002210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002260| 00 00 00 00 30 30 30 36 | 36 34 20 00 30 30 30 31 |....0006|64 .0001|
|00002270| 34 37 20 00 30 30 30 33 | 30 33 20 00 30 30 30 30 |47 .0003|03 .0000|
|00002280| 30 30 30 37 31 31 34 20 | 30 34 31 30 33 37 32 32 |0007114 |04103722|
|00002290| 34 32 36 20 30 30 37 32 | 33 37 00 20 20 00 00 00 |426 0072|37. ...|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002400| 2e 5c 22 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |.\" Copy|right 19|
|00002410| 38 30 20 4b 65 6e 6e 65 | 74 68 20 43 2e 20 52 2e |80 Kenne|th C. R.|
|00002420| 20 43 2e 20 41 72 6e 6f | 6c 64 20 61 6e 64 20 54 | C. Arno|ld and T|
|00002430| 68 65 20 52 65 67 65 6e | 74 73 20 6f 66 20 74 68 |he Regen|ts of th|
|00002440| 65 0a 2e 5c 22 20 55 6e | 69 76 65 72 73 69 74 79 |e..\" Un|iversity|
|00002450| 20 6f 66 20 43 61 6c 69 | 66 6f 72 6e 69 61 2e 20 | of Cali|fornia. |
|00002460| 20 50 65 72 6d 69 73 73 | 69 6f 6e 20 69 73 20 67 | Permiss|ion is g|
|00002470| 72 61 6e 74 65 64 20 74 | 6f 20 66 72 65 65 6c 79 |ranted t|o freely|
|00002480| 0a 2e 5c 22 20 64 69 73 | 74 72 69 62 75 74 65 20 |..\" dis|tribute |
|00002490| 63 75 72 73 65 73 20 61 | 6e 64 20 69 74 73 20 64 |curses a|nd its d|
|000024a0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 70 72 6f |ocumenta|tion pro|
|000024b0| 76 69 64 65 64 20 74 68 | 61 74 20 74 68 69 73 0a |vided th|at this.|
|000024c0| 2e 5c 22 20 6e 6f 74 69 | 63 65 20 69 73 20 6c 65 |.\" noti|ce is le|
|000024d0| 66 74 20 69 6e 74 61 63 | 74 2e 0a 2e 5c 22 0a 2e |ft intac|t...\"..|
|000024e0| 5c 22 09 40 28 23 29 61 | 70 70 65 6e 2e 42 09 36 |\".@(#)a|ppen.B.6|
|000024f0| 2e 31 20 28 42 65 72 6b | 65 6c 65 79 29 20 34 2f |.1 (Berk|eley) 4/|
|00002500| 32 33 2f 38 36 0a 2e 5c | 22 0a 2e 69 65 20 74 20 |23/86..\|"..ie t |
|00002510| 2e 6f 68 20 27 5c 2a 28 | 4c 6e 20 41 70 70 65 6e |.oh '\*(|Ln Appen|
|00002520| 64 69 78 20 42 27 27 50 | 53 31 3a 31 38 2d 25 27 |dix B''P|S1:18-%'|
|00002530| 0a 2e 65 68 20 27 50 53 | 31 3a 31 38 2d 25 27 27 |..eh 'PS|1:18-%''|
|00002540| 5c 2a 28 4c 6e 20 41 70 | 70 65 6e 64 69 78 20 42 |\*(Ln Ap|pendix B|
|00002550| 27 0a 2e 65 6c 20 2e 68 | 65 20 27 27 5c 66 49 41 |'..el .h|e ''\fIA|
|00002560| 70 70 65 6e 64 69 78 20 | 42 5c 66 52 27 27 0a 2e |ppendix |B\fR''..|
|00002570| 62 70 0a 2e 28 78 0a 2e | 74 69 20 30 0a 2e 62 20 |bp..(x..|ti 0..b |
|00002580| 22 41 70 70 65 6e 64 69 | 78 20 42 22 0a 2e 29 78 |"Appendi|x B"..)x|
|00002590| 0a 2e 6e 72 20 24 31 20 | 30 0a 2e 73 68 20 31 20 |..nr $1 |0..sh 1 |
|000025a0| 22 54 68 65 20 57 49 4e | 44 4f 57 20 73 74 72 75 |"The WIN|DOW stru|
|000025b0| 63 74 75 72 65 22 0a 2e | 70 70 0a 54 68 65 20 57 |cture"..|pp.The W|
|000025c0| 49 4e 44 4f 57 20 73 74 | 72 75 63 74 75 72 65 20 |INDOW st|ructure |
|000025d0| 69 73 20 64 65 66 69 6e | 65 64 20 61 73 20 66 6f |is defin|ed as fo|
|000025e0| 6c 6c 6f 77 73 3a 0a 2e | 28 6c 20 49 0a 2e 73 6f |llows:..|(l I..so|
|000025f0| 20 77 69 6e 5f 73 74 2e | 67 72 0a 2e 29 6c 0a 2e | win_st.|gr..)l..|
|00002600| 70 70 0a 2e 56 6e 20 5c | 2a 5f 63 75 72 79 20 5c |pp..Vn \|*_cury \|
|00002610| 5c 2a 0a 2e 28 66 0a 5c | 2a 2a 0a 41 6c 6c 20 76 |\*..(f.\|**.All v|
|00002620| 61 72 69 61 62 6c 65 73 | 20 6e 6f 74 20 6e 6f 72 |ariables| not nor|
|00002630| 6d 61 6c 6c 79 20 61 63 | 63 65 73 73 65 64 20 64 |mally ac|cessed d|
|00002640| 69 72 65 63 74 6c 79 20 | 62 79 20 74 68 65 20 75 |irectly |by the u|
|00002650| 73 65 72 0a 61 72 65 20 | 6e 61 6d 65 64 20 77 69 |ser.are |named wi|
|00002660| 74 68 20 61 6e 20 69 6e | 69 74 69 61 6c 0a 2e 42 |th an in|itial..B|
|00002670| 71 20 5c 2a 5f 0a 74 6f | 20 61 76 6f 69 64 20 63 |q \*_.to| avoid c|
|00002680| 6f 6e 66 6c 69 63 74 73 | 20 77 69 74 68 20 74 68 |onflicts| with th|
|00002690| 65 20 75 73 65 72 27 73 | 20 76 61 72 69 61 62 6c |e user's| variabl|
|000026a0| 65 73 2e 0a 2e 29 66 0a | 61 6e 64 0a 2e 56 6e 20 |es...)f.|and..Vn |
|000026b0| 5c 2a 5f 63 75 72 78 0a | 61 72 65 20 74 68 65 20 |\*_curx.|are the |
|000026c0| 63 75 72 72 65 6e 74 20 | 5c 2a 79 20 66 6f 72 20 |current |\*y for |
|000026d0| 74 68 65 20 77 69 6e 64 | 6f 77 2e 0a 4e 65 77 20 |the wind|ow..New |
|000026e0| 63 68 61 72 61 63 74 65 | 72 73 20 61 64 64 65 64 |characte|rs added|
|000026f0| 20 74 6f 20 74 68 65 20 | 73 63 72 65 65 6e 0a 61 | to the |screen.a|
|00002700| 72 65 20 61 64 64 65 64 | 20 61 74 20 74 68 69 73 |re added| at this|
|00002710| 20 70 6f 69 6e 74 2e 0a | 2e 56 6e 20 5c 2a 5f 6d | point..|.Vn \*_m|
|00002720| 61 78 79 0a 61 6e 64 0a | 2e 56 6e 20 5c 2a 5f 6d |axy.and.|.Vn \*_m|
|00002730| 61 78 78 0a 61 72 65 20 | 74 68 65 20 6d 61 78 69 |axx.are |the maxi|
|00002740| 6d 75 6d 20 76 61 6c 75 | 65 73 20 61 6c 6c 6f 77 |mum valu|es allow|
|00002750| 65 64 20 66 6f 72 0a 2e | 56 6e 20 5c 2a 5f 63 75 |ed for..|Vn \*_cu|
|00002760| 72 79 5c 2a 2c 5c 2a 5f | 63 75 72 78 20 29 2e 20 |ry\*,\*_|curx ). |
|00002770| 28 0a 2e 56 6e 20 5c 2a | 5f 62 65 67 79 0a 61 6e |(..Vn \*|_begy.an|
|00002780| 64 0a 2e 56 6e 20 5c 2a | 5f 62 65 67 78 0a 61 72 |d..Vn \*|_begx.ar|
|00002790| 65 20 74 68 65 20 73 74 | 61 72 74 69 6e 67 20 5c |e the st|arting \|
|000027a0| 2a 79 20 6f 6e 20 74 68 | 65 20 74 65 72 6d 69 6e |*y on th|e termin|
|000027b0| 61 6c 20 66 6f 72 20 74 | 68 65 20 77 69 6e 64 6f |al for t|he windo|
|000027c0| 77 2c 0a 2e 69 20 69 2e | 65 2e 20 2c 0a 74 68 65 |w,..i i.|e. ,.the|
|000027d0| 20 77 69 6e 64 6f 77 27 | 73 20 68 6f 6d 65 2e 0a | window'|s home..|
|000027e0| 2e 56 6e 20 5c 2a 5f 63 | 75 72 79 20 2c 0a 2e 56 |.Vn \*_c|ury ,..V|
|000027f0| 6e 20 5c 2a 5f 63 75 72 | 78 20 2c 0a 2e 56 6e 20 |n \*_cur|x ,..Vn |
|00002800| 5c 2a 5f 6d 61 78 79 20 | 2c 0a 61 6e 64 0a 2e 56 |\*_maxy |,.and..V|
|00002810| 6e 20 5c 2a 5f 6d 61 78 | 78 0a 61 72 65 20 6d 65 |n \*_max|x.are me|
|00002820| 61 73 75 72 65 64 20 72 | 65 6c 61 74 69 76 65 20 |asured r|elative |
|00002830| 74 6f 0a 2e 56 6e 20 5c | 2a 5f 62 65 67 79 5c 2a |to..Vn \|*_begy\*|
|00002840| 2c 5c 2a 5f 62 65 67 78 | 20 29 2c 20 28 0a 6e 6f |,\*_begx| ), (.no|
|00002850| 74 20 74 68 65 20 74 65 | 72 6d 69 6e 61 6c 27 73 |t the te|rminal's|
|00002860| 20 68 6f 6d 65 2e 0a 2e | 70 70 0a 2e 56 6e 20 5c | home...|pp..Vn \|
|00002870| 2a 5f 63 6c 65 61 72 0a | 74 65 6c 6c 73 20 69 66 |*_clear.|tells if|
|00002880| 20 61 20 63 6c 65 61 72 | 2d 73 63 72 65 65 6e 20 | a clear|-screen |
|00002890| 73 65 71 75 65 6e 63 65 | 20 69 73 20 74 6f 20 62 |sequence| is to b|
|000028a0| 65 20 67 65 6e 65 72 61 | 74 65 64 0a 6f 6e 20 74 |e genera|ted.on t|
|000028b0| 68 65 20 6e 65 78 74 0a | 2e 46 6e 20 72 65 66 72 |he next.|.Fn refr|
|000028c0| 65 73 68 0a 63 61 6c 6c | 2e 0a 54 68 69 73 20 69 |esh.call|..This i|
|000028d0| 73 20 6f 6e 6c 79 20 6d | 65 61 6e 69 6e 67 66 75 |s only m|eaningfu|
|000028e0| 6c 20 66 6f 72 20 73 63 | 72 65 65 6e 73 2e 0a 54 |l for sc|reens..T|
|000028f0| 68 65 20 69 6e 69 74 69 | 61 6c 20 63 6c 65 61 72 |he initi|al clear|
|00002900| 2d 73 63 72 65 65 6e 20 | 66 6f 72 20 74 68 65 20 |-screen |for the |
|00002910| 66 69 72 73 74 0a 2e 46 | 6e 20 72 65 66 72 65 73 |first..F|n refres|
|00002920| 68 0a 63 61 6c 6c 20 69 | 73 20 67 65 6e 65 72 61 |h.call i|s genera|
|00002930| 74 65 64 20 62 79 20 69 | 6e 69 74 69 61 6c 6c 79 |ted by i|nitially|
|00002940| 20 73 65 74 74 69 6e 67 | 20 63 6c 65 61 72 20 74 | setting| clear t|
|00002950| 6f 20 62 65 20 54 52 55 | 45 20 66 6f 72 0a 2e 56 |o be TRU|E for..V|
|00002960| 6e 20 63 75 72 73 63 72 | 20 2c 0a 77 68 69 63 68 |n curscr| ,.which|
|00002970| 20 61 6c 77 61 79 73 20 | 67 65 6e 65 72 61 74 65 | always |generate|
|00002980| 73 20 61 20 63 6c 65 61 | 72 2d 73 63 72 65 65 6e |s a clea|r-screen|
|00002990| 20 69 66 20 73 65 74 2c | 0a 69 72 72 65 6c 65 76 | if set,|.irrelev|
|000029a0| 61 6e 74 20 6f 66 20 74 | 68 65 20 64 69 6d 65 6e |ant of t|he dimen|
|000029b0| 73 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 77 69 6e |sions of| the win|
|000029c0| 64 6f 77 20 69 6e 76 6f | 6c 76 65 64 2e 0a 2e 56 |dow invo|lved...V|
|000029d0| 6e 20 5c 2a 5f 6c 65 61 | 76 65 0a 69 73 20 54 52 |n \*_lea|ve.is TR|
|000029e0| 55 45 20 69 66 20 74 68 | 65 20 63 75 72 72 65 6e |UE if th|e curren|
|000029f0| 74 20 5c 2a 79 20 61 6e | 64 20 74 68 65 20 63 75 |t \*y an|d the cu|
|00002a00| 72 73 6f 72 0a 61 72 65 | 20 74 6f 20 62 65 20 6c |rsor.are| to be l|
|00002a10| 65 66 74 20 61 66 74 65 | 72 20 74 68 65 20 6c 61 |eft afte|r the la|
|00002a20| 73 74 20 63 68 61 72 61 | 63 74 65 72 20 63 68 61 |st chara|cter cha|
|00002a30| 6e 67 65 64 20 6f 6e 20 | 74 68 65 20 74 65 72 6d |nged on |the term|
|00002a40| 69 6e 61 6c 2c 0a 6f 72 | 20 6e 6f 74 20 6d 6f 76 |inal,.or| not mov|
|00002a50| 65 64 20 69 66 20 74 68 | 65 72 65 20 69 73 20 6e |ed if th|ere is n|
|00002a60| 6f 20 63 68 61 6e 67 65 | 2e 0a 2e 56 6e 20 5c 2a |o change|...Vn \*|
|00002a70| 5f 73 63 72 6f 6c 6c 0a | 69 73 20 54 52 55 45 0a |_scroll.|is TRUE.|
|00002a80| 69 66 20 73 63 72 6f 6c | 6c 69 6e 67 20 69 73 20 |if scrol|ling is |
|00002a90| 61 6c 6c 6f 77 65 64 2e | 0a 2e 70 70 0a 2e 56 6e |allowed.|..pp..Vn|
|00002aa0| 20 5c 2a 5f 79 0a 69 73 | 20 61 20 70 6f 69 6e 74 | \*_y.is| a point|
|00002ab0| 65 72 20 74 6f 20 61 6e | 20 61 72 72 61 79 20 6f |er to an| array o|
|00002ac0| 66 20 6c 69 6e 65 73 20 | 77 68 69 63 68 20 64 65 |f lines |which de|
|00002ad0| 73 63 72 69 62 65 20 74 | 68 65 20 74 65 72 6d 69 |scribe t|he termi|
|00002ae0| 6e 61 6c 2e 0a 54 68 75 | 73 3a 0a 2e 28 6c 0a 5c |nal..Thu|s:..(l.\|
|00002af0| 2a 5f 79 5b 69 5d 0a 2e | 29 6c 0a 2e 6c 70 0a 69 |*_y[i]..|)l..lp.i|
|00002b00| 73 20 61 20 70 6f 69 6e | 74 65 72 20 74 6f 20 74 |s a poin|ter to t|
|00002b10| 68 65 0a 2e 56 6e 20 69 | 20 74 68 0a 6c 69 6e 65 |he..Vn i| th.line|
|00002b20| 2c 20 61 6e 64 0a 2e 28 | 6c 0a 5c 2a 5f 79 5b 69 |, and..(|l.\*_y[i|
|00002b30| 5d 5b 6a 5d 0a 2e 29 6c | 0a 2e 6c 70 0a 69 73 20 |][j]..)l|..lp.is |
|00002b40| 74 68 65 0a 2e 56 6e 20 | 6a 20 74 68 0a 63 68 61 |the..Vn |j th.cha|
|00002b50| 72 61 63 74 65 72 20 6f | 6e 20 74 68 65 0a 2e 56 |racter o|n the..V|
|00002b60| 6e 20 69 20 74 68 0a 6c | 69 6e 65 2e 0a 2e 56 6e |n i th.l|ine...Vn|
|00002b70| 20 5c 2a 5f 66 6c 61 67 | 73 0a 63 61 6e 20 68 61 | \*_flag|s.can ha|
|00002b80| 76 65 20 6f 6e 65 20 6f | 72 20 6d 6f 72 65 20 76 |ve one o|r more v|
|00002b90| 61 6c 75 65 73 0a 6f 72 | 27 64 20 69 6e 74 6f 20 |alues.or|'d into |
|00002ba0| 69 74 2e 0a 2e 70 70 0a | 46 6f 72 20 77 69 6e 64 |it...pp.|For wind|
|00002bb0| 6f 77 73 20 74 68 61 74 | 20 61 72 65 20 6e 6f 74 |ows that| are not|
|00002bc0| 20 73 75 62 77 69 6e 64 | 6f 77 73 2c 0a 2e 56 6e | subwind|ows,..Vn|
|00002bd0| 20 5c 2a 5f 6f 72 69 67 | 0a 69 73 0a 4e 55 4c 4c | \*_orig|.is.NULL|
|00002be0| 20 2e 0a 46 6f 72 20 73 | 75 62 77 69 6e 64 6f 77 | ..For s|ubwindow|
|00002bf0| 73 2c 0a 69 74 20 70 6f | 69 6e 74 73 20 74 6f 20 |s,.it po|ints to |
|00002c00| 74 68 65 20 6d 61 69 6e | 20 77 69 6e 64 6f 77 0a |the main| window.|
|00002c10| 74 6f 20 77 68 69 63 68 | 20 74 68 65 20 77 69 6e |to which| the win|
|00002c20| 64 6f 77 20 69 73 20 73 | 75 62 73 69 64 69 61 72 |dow is s|ubsidiar|
|00002c30| 79 2e 0a 2e 56 6e 20 5c | 2a 5f 6e 65 78 74 70 0a |y...Vn \|*_nextp.|
|00002c40| 69 73 20 61 20 70 6f 69 | 6e 74 65 72 20 69 6e 20 |is a poi|nter in |
|00002c50| 61 20 63 69 72 63 75 6c | 61 72 6c 79 20 6c 69 6e |a circul|arly lin|
|00002c60| 6b 65 64 20 6c 69 73 74 | 0a 6f 66 20 61 6c 6c 20 |ked list|.of all |
|00002c70| 74 68 65 20 77 69 6e 64 | 6f 77 73 20 77 68 69 63 |the wind|ows whic|
|00002c80| 68 20 61 72 65 20 73 75 | 62 77 69 6e 64 6f 77 73 |h are su|bwindows|
|00002c90| 20 6f 66 20 74 68 65 20 | 73 61 6d 65 20 6d 61 69 | of the |same mai|
|00002ca0| 6e 20 77 69 6e 64 6f 77 | 2c 0a 70 6c 75 73 20 74 |n window|,.plus t|
|00002cb0| 68 65 20 6d 61 69 6e 20 | 77 69 6e 64 6f 77 20 69 |he main |window i|
|00002cc0| 74 73 65 6c 66 2e 0a 2e | 70 70 0a 2e 56 6e 20 5c |tself...|pp..Vn \|
|00002cd0| 2a 5f 66 69 72 73 74 63 | 68 0a 61 6e 64 0a 2e 56 |*_firstc|h.and..V|
|00002ce0| 6e 20 5c 2a 5f 6c 61 73 | 74 63 68 0a 61 72 65 0a |n \*_las|tch.are.|
|00002cf0| 2e 46 6e 20 6d 61 6c 6c | 6f 63 20 65 64 0a 61 72 |.Fn mall|oc ed.ar|
|00002d00| 72 61 79 73 20 77 68 69 | 63 68 20 63 6f 6e 74 61 |rays whi|ch conta|
|00002d10| 69 6e 20 74 68 65 20 69 | 6e 64 65 78 20 6f 66 20 |in the i|ndex of |
|00002d20| 74 68 65 0a 66 69 72 73 | 74 20 61 6e 64 20 6c 61 |the.firs|t and la|
|00002d30| 73 74 20 63 68 61 6e 67 | 65 64 20 63 68 61 72 61 |st chang|ed chara|
|00002d40| 63 74 65 72 73 0a 6f 6e | 20 74 68 65 20 6c 69 6e |cters.on| the lin|
|00002d50| 65 2e 0a 2e 56 6e 20 5c | 2a 5f 63 68 5c 2a 5f 6f |e...Vn \|*_ch\*_o|
|00002d60| 66 66 0a 69 73 20 74 68 | 65 20 78 20 6f 66 66 73 |ff.is th|e x offs|
|00002d70| 65 74 20 66 6f 72 20 74 | 68 65 20 77 69 6e 64 6f |et for t|he windo|
|00002d80| 77 0a 69 6e 20 74 68 65 | 0a 2e 56 6e 20 5c 2a 5f |w.in the|..Vn \*_|
|00002d90| 66 69 72 73 74 63 68 0a | 61 6e 64 0a 2e 56 6e 20 |firstch.|and..Vn |
|00002da0| 5c 2a 5f 6c 61 73 74 63 | 68 0a 61 72 72 61 79 73 |\*_lastc|h.arrays|
|00002db0| 20 66 6f 72 20 74 68 69 | 73 20 77 69 6e 64 6f 77 | for thi|s window|
|00002dc0| 2e 0a 46 6f 72 20 6d 61 | 69 6e 20 77 69 6e 64 6f |..For ma|in windo|
|00002dd0| 77 73 2c 0a 74 68 69 73 | 20 69 73 20 61 6c 77 61 |ws,.this| is alwa|
|00002de0| 79 73 20 30 3b 0a 66 6f | 72 20 73 75 62 77 69 6e |ys 0;.fo|r subwin|
|00002df0| 64 6f 77 73 0a 69 74 20 | 69 73 20 74 68 65 20 64 |dows.it |is the d|
|00002e00| 69 66 66 65 72 65 6e 63 | 65 20 62 65 74 77 65 65 |ifferenc|e betwee|
|00002e10| 6e 20 74 68 65 20 73 74 | 61 72 74 69 6e 67 20 70 |n the st|arting p|
|00002e20| 6f 69 6e 74 20 6f 66 20 | 74 68 65 20 6d 61 69 6e |oint of |the main|
|00002e30| 20 77 69 6e 64 6f 77 0a | 61 6e 64 20 74 68 61 74 | window.|and that|
|00002e40| 20 6f 66 20 74 68 65 20 | 73 75 62 69 6e 64 6f 77 | of the |subindow|
|00002e50| 2c 0a 73 6f 20 74 68 61 | 74 20 63 68 61 6e 67 65 |,.so tha|t change|
|00002e60| 20 6d 61 72 6b 65 72 73 | 20 63 61 6e 20 62 65 20 | markers| can be |
|00002e70| 73 65 74 20 72 65 6c 61 | 74 69 76 65 20 74 6f 20 |set rela|tive to |
|00002e80| 74 68 65 20 6d 61 69 6e | 20 77 69 6e 64 6f 77 2e |the main| window.|
|00002e90| 0a 54 68 69 73 20 6d 61 | 6b 65 73 20 74 68 65 73 |.This ma|kes thes|
|00002ea0| 65 20 6d 61 72 6b 65 72 | 73 20 67 6c 6f 62 61 6c |e marker|s global|
|00002eb0| 20 69 6e 20 73 63 6f 70 | 65 2e 0a 2e 70 70 0a 41 | in scop|e...pp.A|
|00002ec0| 6c 6c 20 73 75 62 77 69 | 6e 64 6f 77 73 20 73 68 |ll subwi|ndows sh|
|00002ed0| 61 72 65 20 74 68 65 20 | 61 70 70 72 6f 70 72 69 |are the |appropri|
|00002ee0| 61 74 65 20 70 6f 72 74 | 69 6f 6e 73 20 6f 66 0a |ate port|ions of.|
|00002ef0| 2e 56 6e 20 5f 79 20 2c | 0a 2e 56 6e 20 5f 66 69 |.Vn _y ,|..Vn _fi|
|00002f00| 72 73 74 63 68 20 2c 0a | 2e 56 6e 20 5f 6c 61 73 |rstch ,.|.Vn _las|
|00002f10| 74 63 68 20 2c 0a 61 6e | 64 0a 2e 56 6e 20 5f 69 |tch ,.an|d..Vn _i|
|00002f20| 6e 73 64 65 6c 0a 77 69 | 74 68 20 74 68 65 69 72 |nsdel.wi|th their|
|00002f30| 20 6d 61 69 6e 20 77 69 | 6e 64 6f 77 2e 0a 2e 70 | main wi|ndow...p|
|00002f40| 70 0a 2e 62 20 5c 2a 5f | 45 4e 44 4c 49 4e 45 0a |p..b \*_|ENDLINE.|
|00002f50| 73 61 79 73 20 74 68 61 | 74 20 74 68 65 20 65 6e |says tha|t the en|
|00002f60| 64 20 6f 66 20 74 68 65 | 20 6c 69 6e 65 20 66 6f |d of the| line fo|
|00002f70| 72 20 74 68 69 73 20 77 | 69 6e 64 6f 77 0a 69 73 |r this w|indow.is|
|00002f80| 20 61 6c 73 6f 20 74 68 | 65 20 65 6e 64 20 6f 66 | also th|e end of|
|00002f90| 20 61 20 73 63 72 65 65 | 6e 2e 0a 2e 62 20 5c 2a | a scree|n...b \*|
|00002fa0| 5f 46 55 4c 4c 57 49 4e | 0a 73 61 79 73 20 74 68 |_FULLWIN|.says th|
|00002fb0| 61 74 20 74 68 69 73 20 | 77 69 6e 64 6f 77 20 69 |at this |window i|
|00002fc0| 73 20 61 20 73 63 72 65 | 65 6e 2e 0a 2e 62 20 5c |s a scre|en...b \|
|00002fd0| 2a 5f 53 43 52 4f 4c 4c | 57 49 4e 0a 69 6e 64 69 |*_SCROLL|WIN.indi|
|00002fe0| 63 61 74 65 73 20 74 68 | 61 74 20 74 68 65 20 6c |cates th|at the l|
|00002ff0| 61 73 74 20 63 68 61 72 | 61 63 74 65 72 20 6f 66 |ast char|acter of|
|00003000| 20 74 68 69 73 20 73 63 | 72 65 65 6e 0a 69 73 20 | this sc|reen.is |
|00003010| 61 74 20 74 68 65 20 6c | 6f 77 65 72 20 72 69 67 |at the l|ower rig|
|00003020| 68 74 2d 68 61 6e 64 20 | 63 6f 72 6e 65 72 20 6f |ht-hand |corner o|
|00003030| 66 20 74 68 65 20 74 65 | 72 6d 69 6e 61 6c 3b 0a |f the te|rminal;.|
|00003040| 2e 69 20 69 2e 65 2e 20 | 2c 0a 69 66 20 61 20 63 |.i i.e. |,.if a c|
|00003050| 68 61 72 61 63 74 65 72 | 20 77 61 73 20 70 75 74 |haracter| was put|
|00003060| 20 74 68 65 72 65 2c 0a | 74 68 65 20 74 65 72 6d | there,.|the term|
|00003070| 69 6e 61 6c 20 77 6f 75 | 6c 64 20 73 63 72 6f 6c |inal wou|ld scrol|
|00003080| 6c 2e 0a 2e 62 20 5c 2a | 5f 46 55 4c 4c 4c 49 4e |l...b \*|_FULLLIN|
|00003090| 45 0a 73 61 79 73 20 74 | 68 61 74 20 74 68 65 20 |E.says t|hat the |
|000030a0| 77 69 64 74 68 20 6f 66 | 20 61 20 6c 69 6e 65 20 |width of| a line |
|000030b0| 69 73 20 74 68 65 20 73 | 61 6d 65 20 61 73 20 74 |is the s|ame as t|
|000030c0| 68 65 20 77 69 64 74 68 | 20 6f 66 20 74 68 65 20 |he width| of the |
|000030d0| 74 65 72 6d 69 6e 61 6c | 2e 0a 49 66 0a 2e 62 20 |terminal|..If..b |
|000030e0| 5c 2a 5f 46 4c 55 53 48 | 0a 69 73 20 73 65 74 2c |\*_FLUSH|.is set,|
|000030f0| 0a 69 74 20 73 61 79 73 | 20 74 68 61 74 0a 2e 46 |.it says| that..F|
|00003100| 6e 20 66 66 6c 75 73 68 | 20 22 22 20 22 22 20 73 |n fflush| "" "" s|
|00003110| 74 64 6f 75 74 0a 73 68 | 6f 75 6c 64 20 62 65 20 |tdout.sh|ould be |
|00003120| 63 61 6c 6c 65 64 20 61 | 74 20 74 68 65 20 65 6e |called a|t the en|
|00003130| 64 20 6f 66 20 65 61 63 | 68 0a 2e 46 6e 20 72 65 |d of eac|h..Fn re|
|00003140| 66 72 65 73 68 0a 2e 62 | 20 5c 2a 5f 53 54 41 4e |fresh..b| \*_STAN|
|00003150| 44 4f 55 54 0a 73 61 79 | 73 20 74 68 61 74 20 61 |DOUT.say|s that a|
|00003160| 6c 6c 20 63 68 61 72 61 | 63 74 65 72 73 20 61 64 |ll chara|cters ad|
|00003170| 64 65 64 20 74 6f 20 74 | 68 65 20 73 63 72 65 65 |ded to t|he scree|
|00003180| 6e 0a 61 72 65 20 69 6e | 20 73 74 61 6e 64 6f 75 |n.are in| standou|
|00003190| 74 20 6d 6f 64 65 2e 0a | 2e 62 20 5c 2a 5f 49 4e |t mode..|.b \*_IN|
|000031a0| 53 44 45 4c 0a 69 73 20 | 72 65 73 65 72 76 65 64 |SDEL.is |reserved|
|000031b0| 20 66 6f 72 20 66 75 74 | 75 72 65 20 75 73 65 2c | for fut|ure use,|
|000031c0| 0a 61 6e 64 20 69 73 20 | 73 65 74 20 62 79 0a 2e |.and is |set by..|
|000031d0| 46 6e 20 69 64 6c 6f 6b | 20 2e 0a 2e 56 6e 20 5c |Fn idlok| ...Vn \|
|000031e0| 2a 5f 66 69 72 73 74 63 | 68 0a 69 73 20 73 65 74 |*_firstc|h.is set|
|000031f0| 20 74 6f 0a 2e 62 20 5c | 2a 5f 4e 4f 43 48 41 4e | to..b \|*_NOCHAN|
|00003200| 47 45 0a 66 6f 72 20 6c | 69 6e 65 73 20 6f 6e 20 |GE.for l|ines on |
|00003210| 77 68 69 63 68 20 74 68 | 65 72 65 20 68 61 73 20 |which th|ere has |
|00003220| 62 65 65 6e 20 6e 6f 20 | 63 68 61 6e 67 65 0a 73 |been no |change.s|
|00003230| 69 6e 63 65 20 74 68 65 | 20 6c 61 73 74 0a 2e 46 |ince the| last..F|
|00003240| 6e 20 72 65 66 72 65 73 | 68 20 2e 0a 20 61 20 63 |n refres|h .. a c|
|00003250| 68 61 72 61 63 74 65 72 | 20 77 61 73 20 70 75 74 |haracter| was put|
|00003260| 20 74 68 65 72 65 2c 0a | 74 68 65 20 74 65 72 6d | there,.|the term|
|00003270| 69 6e 61 6c 20 77 6f 75 | 6c 64 20 73 63 72 6f 6c |inal wou|ld scrol|
|00003280| 6c 2e 0a 2e 62 20 5c 2a | 5f 46 55 4c 4c 4c 49 4e |l...b \*|_FULLLIN|
|00003290| 45 0a 73 61 79 73 20 74 | 68 61 74 20 74 68 65 20 |E.says t|hat the |
|000032a0| 77 69 64 74 68 20 6f 66 | 20 61 20 6c 69 6e 65 20 |width of| a line |
|000032b0| 69 73 20 74 68 65 20 73 | 61 6d 65 20 61 73 20 74 |is the s|ame as t|
|000032c0| 68 65 20 77 69 64 74 68 | 20 6f 66 20 74 68 65 20 |he width| of the |
|000032d0| 74 65 72 6d 69 6e 61 6c | 2e 0a 49 66 0a 2e 62 20 |terminal|..If..b |
|000032e0| 5c 2a 5f 46 4c 55 53 48 | 0a 69 73 20 73 65 74 2c |\*_FLUSH|.is set,|
|000032f0| 0a 69 74 20 73 61 79 73 | 20 74 68 61 74 0a 2e 46 |.it says| that..F|
|00003300| 6e 20 66 66 6c 75 73 68 | 20 22 22 20 22 22 20 73 |n fflush| "" "" s|
|00003310| 74 64 6f 75 74 0a 73 68 | 6f 75 6c 64 20 62 65 20 |tdout.sh|ould be |
|00003320| 63 61 6c 6c 65 64 20 61 | 74 20 74 68 65 20 65 6e |called a|t the en|
|00003330| 64 20 6f 66 20 65 61 63 | 68 0a 2e 46 6e 20 72 65 |d of eac|h..Fn re|
|00003340| 66 72 65 73 68 0a 2e 62 | 20 5c 2a 5f 53 54 41 4e |fresh..b| \*_STAN|
|00003350| 44 4f 55 54 0a 73 61 79 | 73 20 74 68 61 74 20 61 |DOUT.say|s that a|
|00003360| 6c 6c 20 63 68 61 72 61 | 63 74 65 72 73 20 61 64 |ll chara|cters ad|
|00003370| 64 65 64 20 74 6f 20 74 | 68 65 20 73 63 72 65 65 |ded to t|he scree|
|00003380| 6e 0a 61 72 65 20 69 6e | 20 73 74 61 6e 64 6f 75 |n.are in| standou|
|00003390| 74 20 6d 6f 64 65 2e 0a | 2e 62 20 5c 2a 5f 49 4e |t mode..|.b \*_IN|
|000033a0| 53 44 45 4c 0a 69 73 20 | 72 65 73 65 72 76 65 64 |SDEL.is |reserved|
|000033b0| 20 66 6f 72 20 66 75 74 | 75 72 65 20 75 73 65 2c | for fut|ure use,|
|000033c0| 0a 61 6e 64 20 69 73 20 | 73 65 74 20 62 79 0a 2e |.and is |set by..|
|000033d0| 46 6e 20 69 64 6c 6f 6b | 20 2e 0a 2e 56 6e 20 5c |Fn idlok| ...Vn \|
|000033e0| 2a 5f 66 69 72 73 74 63 | 68 0a 69 73 20 73 65 74 |*_firstc|h.is set|
|000033f0| 20 74 6f 0a 2e 62 20 5c | 2a 5f 4e 4f 43 48 41 4e | to..b \|*_NOCHAN|
|00003400| 4d 61 6e 75 61 6c 2f 61 | 70 70 65 6e 2e 43 00 00 |Manual/a|ppen.C..|
|00003410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003460| 00 00 00 00 30 30 30 36 | 36 34 20 00 30 30 30 31 |....0006|64 .0001|
|00003470| 34 37 20 00 30 30 30 33 | 30 33 20 00 30 30 30 30 |47 .0003|03 .0000|
|00003480| 30 30 30 34 37 30 37 20 | 30 34 31 30 33 37 32 32 |0004707 |04103722|
|00003490| 34 32 37 20 30 30 37 32 | 34 36 00 20 20 00 00 00 |427 0072|46. ...|
|000034a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003600| 2e 5c 22 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |.\" Copy|right 19|
|00003610| 38 30 20 4b 65 6e 6e 65 | 74 68 20 43 2e 20 52 2e |80 Kenne|th C. R.|
|00003620| 20 43 2e 20 41 72 6e 6f | 6c 64 20 61 6e 64 20 54 | C. Arno|ld and T|
|00003630| 68 65 20 52 65 67 65 6e | 74 73 20 6f 66 20 74 68 |he Regen|ts of th|
|00003640| 65 0a 2e 5c 22 20 55 6e | 69 76 65 72 73 69 74 79 |e..\" Un|iversity|
|00003650| 20 6f 66 20 43 61 6c 69 | 66 6f 72 6e 69 61 2e 20 | of Cali|fornia. |
|00003660| 20 50 65 72 6d 69 73 73 | 69 6f 6e 20 69 73 20 67 | Permiss|ion is g|
|00003670| 72 61 6e 74 65 64 20 74 | 6f 20 66 72 65 65 6c 79 |ranted t|o freely|
|00003680| 0a 2e 5c 22 20 64 69 73 | 74 72 69 62 75 74 65 20 |..\" dis|tribute |
|00003690| 63 75 72 73 65 73 20 61 | 6e 64 20 69 74 73 20 64 |curses a|nd its d|
|000036a0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 70 72 6f |ocumenta|tion pro|
|000036b0| 76 69 64 65 64 20 74 68 | 61 74 20 74 68 69 73 0a |vided th|at this.|
|000036c0| 2e 5c 22 20 6e 6f 74 69 | 63 65 20 69 73 20 6c 65 |.\" noti|ce is le|
|000036d0| 66 74 20 69 6e 74 61 63 | 74 2e 0a 2e 5c 22 0a 2e |ft intac|t...\"..|
|000036e0| 5c 22 09 40 28 23 29 61 | 70 70 65 6e 2e 43 09 36 |\".@(#)a|ppen.C.6|
|000036f0| 2e 31 20 28 42 65 72 6b | 65 6c 65 79 29 20 34 2f |.1 (Berk|eley) 4/|
|00003700| 32 33 2f 38 36 0a 2e 5c | 22 0a 2e 69 65 20 74 20 |23/86..\|"..ie t |
|00003710| 2e 6f 68 20 27 5c 2a 28 | 4c 6e 20 41 70 70 65 6e |.oh '\*(|Ln Appen|
|00003720| 64 69 78 20 43 27 27 50 | 53 31 3a 31 38 2d 25 27 |dix C''P|S1:18-%'|
|00003730| 0a 2e 65 68 20 27 50 53 | 31 3a 31 38 2d 25 27 27 |..eh 'PS|1:18-%''|
|00003740| 5c 2a 28 4c 6e 20 41 70 | 70 65 6e 64 69 78 20 43 |\*(Ln Ap|pendix C|
|00003750| 27 0a 2e 65 6c 20 2e 68 | 65 20 27 27 5c 66 49 41 |'..el .h|e ''\fIA|
|00003760| 70 70 65 6e 64 69 78 20 | 43 5c 66 52 27 27 0a 2e |ppendix |C\fR''..|
|00003770| 62 70 0a 2e 28 78 0a 2e | 74 69 20 30 0a 2e 62 20 |bp..(x..|ti 0..b |
|00003780| 22 41 70 70 65 6e 64 69 | 78 20 43 22 0a 2e 29 78 |"Appendi|x C"..)x|
|00003790| 0a 2e 73 68 20 31 20 22 | 45 78 61 6d 70 6c 65 73 |..sh 1 "|Examples|
|000037a0| 22 20 31 0a 2e 70 70 0a | 48 65 72 65 20 77 65 20 |" 1..pp.|Here we |
|000037b0| 70 72 65 73 65 6e 74 20 | 61 20 66 65 77 20 65 78 |present |a few ex|
|000037c0| 61 6d 70 6c 65 73 0a 6f | 66 20 68 6f 77 20 74 6f |amples.o|f how to|
|000037d0| 20 75 73 65 20 74 68 65 | 20 70 61 63 6b 61 67 65 | use the| package|
|000037e0| 2e 0a 54 68 65 79 20 61 | 74 74 65 6d 70 74 20 74 |..They a|ttempt t|
|000037f0| 6f 20 62 65 20 72 65 70 | 72 65 73 65 6e 74 61 74 |o be rep|resentat|
|00003800| 69 76 65 2c 0a 74 68 6f | 75 67 68 20 6e 6f 74 20 |ive,.tho|ugh not |
|00003810| 63 6f 6d 70 72 65 68 65 | 6e 73 69 76 65 2e 0a 2e |comprehe|nsive...|
|00003820| 73 68 20 31 20 22 53 63 | 72 65 65 6e 20 55 70 64 |sh 1 "Sc|reen Upd|
|00003830| 61 74 69 6e 67 22 0a 2e | 70 70 0a 54 68 65 20 66 |ating"..|pp.The f|
|00003840| 6f 6c 6c 6f 77 69 6e 67 | 20 65 78 61 6d 70 6c 65 |ollowing| example|
|00003850| 73 20 61 72 65 20 69 6e | 74 65 6e 64 65 64 20 74 |s are in|tended t|
|00003860| 6f 20 64 65 6d 6f 6e 73 | 74 72 61 74 65 0a 74 68 |o demons|trate.th|
|00003870| 65 20 62 61 73 69 63 20 | 73 74 72 75 63 74 75 72 |e basic |structur|
|00003880| 65 20 6f 66 20 61 20 70 | 72 6f 67 72 61 6d 0a 75 |e of a p|rogram.u|
|00003890| 73 69 6e 67 20 74 68 65 | 20 73 63 72 65 65 6e 20 |sing the| screen |
|000038a0| 75 70 64 61 74 69 6e 67 | 20 73 65 63 74 69 6f 6e |updating| section|
|000038b0| 73 20 6f 66 20 74 68 65 | 20 70 61 63 6b 61 67 65 |s of the| package|
|000038c0| 2e 0a 53 65 76 65 72 61 | 6c 20 6f 66 20 74 68 65 |..Severa|l of the|
|000038d0| 20 70 72 6f 67 72 61 6d | 73 20 72 65 71 75 69 72 | program|s requir|
|000038e0| 65 20 63 61 6c 63 75 6c | 61 74 69 6f 6e 61 6c 20 |e calcul|ational |
|000038f0| 73 65 63 74 69 6f 6e 73 | 0a 77 68 69 63 68 20 61 |sections|.which a|
|00003900| 72 65 20 69 72 72 65 6c | 65 76 61 6e 74 20 6f 66 |re irrel|evant of|
|00003910| 20 74 6f 20 74 68 65 20 | 65 78 61 6d 70 6c 65 2c | to the |example,|
|00003920| 0a 61 6e 64 20 61 72 65 | 20 74 68 65 72 65 66 6f |.and are| therefo|
|00003930| 72 65 20 75 73 75 61 6c | 6c 79 20 6e 6f 74 20 69 |re usual|ly not i|
|00003940| 6e 63 6c 75 64 65 64 2e | 0a 49 74 20 69 73 20 68 |ncluded.|.It is h|
|00003950| 6f 70 65 64 20 74 68 61 | 74 20 74 68 65 20 64 61 |oped tha|t the da|
|00003960| 74 61 20 73 74 72 75 63 | 74 75 72 65 20 64 65 66 |ta struc|ture def|
|00003970| 69 6e 69 74 69 6f 6e 73 | 0a 67 69 76 65 20 65 6e |initions|.give en|
|00003980| 6f 75 67 68 20 6f 66 20 | 61 6e 20 69 64 65 61 20 |ough of |an idea |
|00003990| 74 6f 20 61 6c 6c 6f 77 | 20 75 6e 64 65 72 73 74 |to allow| underst|
|000039a0| 61 6e 64 69 6e 67 0a 6f | 66 20 77 68 61 74 20 74 |anding.o|f what t|
|000039b0| 68 65 20 72 65 6c 65 76 | 61 6e 74 20 70 6f 72 74 |he relev|ant port|
|000039c0| 69 6f 6e 73 20 64 6f 2e | 0a 54 68 65 20 72 65 73 |ions do.|.The res|
|000039d0| 74 20 69 73 20 6c 65 66 | 74 20 61 73 20 61 6e 20 |t is lef|t as an |
|000039e0| 65 78 65 72 63 69 73 65 | 20 74 6f 20 74 68 65 20 |exercise| to the |
|000039f0| 72 65 61 64 65 72 2c 0a | 61 6e 64 20 77 69 6c 6c |reader,.|and will|
|00003a00| 20 6e 6f 74 20 62 65 20 | 6f 6e 20 74 68 65 20 66 | not be |on the f|
|00003a10| 69 6e 61 6c 2e 0a 2e 73 | 68 20 32 20 22 54 77 69 |inal...s|h 2 "Twi|
|00003a20| 6e 6b 6c 65 22 0a 2e 70 | 70 0a 54 68 69 73 20 69 |nkle"..p|p.This i|
|00003a30| 73 20 61 20 6d 6f 64 65 | 72 61 74 65 6c 79 20 73 |s a mode|rately s|
|00003a40| 69 6d 70 6c 65 20 70 72 | 6f 67 72 61 6d 20 77 68 |imple pr|ogram wh|
|00003a50| 69 63 68 20 70 72 69 6e | 74 73 0a 70 72 65 74 74 |ich prin|ts.prett|
|00003a60| 79 20 70 61 74 74 65 72 | 6e 73 20 6f 6e 20 74 68 |y patter|ns on th|
|00003a70| 65 20 73 63 72 65 65 6e | 0a 74 68 61 74 20 6d 69 |e screen|.that mi|
|00003a80| 67 68 74 20 65 76 65 6e | 20 68 6f 6c 64 20 79 6f |ght even| hold yo|
|00003a90| 75 72 20 69 6e 74 65 72 | 65 73 74 20 66 6f 72 20 |ur inter|est for |
|00003aa0| 33 30 20 73 65 63 6f 6e | 64 73 20 6f 72 20 6d 6f |30 secon|ds or mo|
|00003ab0| 72 65 2e 0a 49 74 20 73 | 77 69 74 63 68 65 73 20 |re..It s|witches |
|00003ac0| 62 65 74 77 65 65 6e 20 | 70 61 74 74 65 72 6e 73 |between |patterns|
|00003ad0| 20 6f 66 20 61 73 74 65 | 72 69 73 6b 73 2c 0a 70 | of aste|risks,.p|
|00003ae0| 75 74 74 69 6e 67 20 74 | 68 65 6d 20 6f 6e 20 6f |utting t|hem on o|
|00003af0| 6e 65 20 62 79 20 6f 6e | 65 20 69 6e 20 72 61 6e |ne by on|e in ran|
|00003b00| 64 6f 6d 20 6f 72 64 65 | 72 2c 0a 61 6e 64 20 74 |dom orde|r,.and t|
|00003b10| 68 65 6e 20 74 61 6b 69 | 6e 67 20 74 68 65 6d 20 |hen taki|ng them |
|00003b20| 6f 66 66 20 69 6e 20 74 | 68 65 20 73 61 6d 65 20 |off in t|he same |
|00003b30| 66 61 73 68 69 6f 6e 2e | 0a 49 74 20 69 73 20 6d |fashion.|.It is m|
|00003b40| 6f 72 65 20 65 66 66 69 | 63 69 65 6e 74 20 74 6f |ore effi|cient to|
|00003b50| 20 77 72 69 74 65 20 74 | 68 69 73 0a 75 73 69 6e | write t|his.usin|
|00003b60| 67 20 6f 6e 6c 79 20 74 | 68 65 20 6d 6f 74 69 6f |g only t|he motio|
|00003b70| 6e 20 6f 70 74 69 6d 69 | 7a 61 74 69 6f 6e 2c 0a |n optimi|zation,.|
|00003b80| 61 73 20 69 73 20 64 65 | 6d 6f 6e 73 74 72 61 74 |as is de|monstrat|
|00003b90| 65 64 20 62 65 6c 6f 77 | 2e 0a 2e 28 6c 20 49 0a |ed below|...(l I.|
|00003ba0| 2e 73 6f 20 74 77 69 6e | 6b 6c 65 31 2e 67 72 0a |.so twin|kle1.gr.|
|00003bb0| 2e 29 6c 0a 2e 73 68 20 | 32 20 22 4c 69 66 65 22 |.)l..sh |2 "Life"|
|00003bc0| 0a 2e 70 70 0a 54 68 69 | 73 20 70 72 6f 67 72 61 |..pp.Thi|s progra|
|00003bd0| 6d 20 66 72 61 67 6d 65 | 6e 74 20 6d 6f 64 65 6c |m fragme|nt model|
|00003be0| 73 20 74 68 65 20 66 61 | 6d 6f 75 73 20 63 6f 6d |s the fa|mous com|
|00003bf0| 70 75 74 65 72 20 70 61 | 74 74 65 72 6e 20 67 61 |puter pa|ttern ga|
|00003c00| 6d 65 20 6f 66 20 6c 69 | 66 65 0a 28 53 63 69 65 |me of li|fe.(Scie|
|00003c10| 6e 74 69 66 69 63 20 41 | 6d 65 72 69 63 61 6e 2c |ntific A|merican,|
|00003c20| 20 4d 61 79 2c 20 31 39 | 37 34 29 2e 0a 54 68 65 | May, 19|74)..The|
|00003c30| 20 63 61 6c 63 75 6c 61 | 74 69 6f 6e 61 6c 20 72 | calcula|tional r|
|00003c40| 6f 75 74 69 6e 65 73 20 | 63 72 65 61 74 65 20 61 |outines |create a|
|00003c50| 20 6c 69 6e 6b 65 64 20 | 6c 69 73 74 20 6f 66 20 | linked |list of |
|00003c60| 73 74 72 75 63 74 75 72 | 65 73 0a 64 65 66 69 6e |structur|es.defin|
|00003c70| 69 6e 67 20 77 68 65 72 | 65 20 65 61 63 68 20 70 |ing wher|e each p|
|00003c80| 69 65 63 65 20 69 73 2e | 0a 4e 6f 74 68 69 6e 67 |iece is.|.Nothing|
|00003c90| 20 68 65 72 65 20 63 6c | 61 69 6d 73 20 74 6f 20 | here cl|aims to |
|00003ca0| 62 65 20 6f 70 74 69 6d | 61 6c 2c 0a 6d 65 72 65 |be optim|al,.mere|
|00003cb0| 6c 79 20 64 65 6d 6f 6e | 73 74 72 61 74 69 76 65 |ly demon|strative|
|00003cc0| 2e 0a 54 68 69 73 20 63 | 6f 64 65 2c 20 68 6f 77 |..This c|ode, how|
|00003cd0| 65 76 65 72 2c 0a 69 73 | 20 61 20 76 65 72 79 20 |ever,.is| a very |
|00003ce0| 67 6f 6f 64 20 70 6c 61 | 63 65 20 74 6f 20 75 73 |good pla|ce to us|
|00003cf0| 65 20 74 68 65 20 73 63 | 72 65 65 6e 20 75 70 64 |e the sc|reen upd|
|00003d00| 61 74 69 6e 67 20 72 6f | 75 74 69 6e 65 73 2c 0a |ating ro|utines,.|
|00003d10| 61 73 20 69 74 20 61 6c | 6c 6f 77 73 20 74 68 65 |as it al|lows the|
|00003d20| 6d 20 74 6f 20 77 6f 72 | 72 79 20 61 62 6f 75 74 |m to wor|ry about|
|00003d30| 20 77 68 61 74 20 74 68 | 65 20 6c 61 73 74 20 70 | what th|e last p|
|00003d40| 6f 73 69 74 69 6f 6e 20 | 6c 6f 6f 6b 65 64 20 6c |osition |looked l|
|00003d50| 69 6b 65 2c 0a 73 6f 20 | 79 6f 75 20 64 6f 6e 27 |ike,.so |you don'|
|00003d60| 74 20 68 61 76 65 20 74 | 6f 2e 0a 49 74 20 61 6c |t have t|o..It al|
|00003d70| 73 6f 20 64 65 6d 6f 6e | 73 74 72 61 74 65 73 20 |so demon|strates |
|00003d80| 73 6f 6d 65 20 6f 66 20 | 74 68 65 20 69 6e 70 75 |some of |the inpu|
|00003d90| 74 20 72 6f 75 74 69 6e | 65 73 2e 0a 2e 28 6c 20 |t routin|es...(l |
|00003da0| 49 0a 2e 73 6f 20 6c 69 | 66 65 2e 67 72 0a 2e 29 |I..so li|fe.gr..)|
|00003db0| 6c 0a 2e 73 68 20 31 20 | 22 4d 6f 74 69 6f 6e 20 |l..sh 1 |"Motion |
|00003dc0| 6f 70 74 69 6d 69 7a 61 | 74 69 6f 6e 22 0a 2e 70 |optimiza|tion"..p|
|00003dd0| 70 0a 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |p.The fo|llowing |
|00003de0| 65 78 61 6d 70 6c 65 20 | 73 68 6f 77 73 20 68 6f |example |shows ho|
|00003df0| 77 20 6d 6f 74 69 6f 6e | 20 6f 70 74 69 6d 69 7a |w motion| optimiz|
|00003e00| 61 74 69 6f 6e 0a 69 73 | 20 77 72 69 74 74 65 6e |ation.is| written|
|00003e10| 20 6f 6e 20 69 74 73 20 | 6f 77 6e 2e 0a 50 72 6f | on its |own..Pro|
|00003e20| 67 72 61 6d 73 20 77 68 | 69 63 68 20 66 6c 69 74 |grams wh|ich flit|
|00003e30| 20 66 72 6f 6d 20 6f 6e | 65 20 70 6c 61 63 65 20 | from on|e place |
|00003e40| 74 6f 20 61 6e 6f 74 68 | 65 72 20 77 69 74 68 6f |to anoth|er witho|
|00003e50| 75 74 0a 72 65 67 61 72 | 64 20 66 6f 72 20 77 68 |ut.regar|d for wh|
|00003e60| 61 74 20 69 73 20 61 6c | 72 65 61 64 79 20 74 68 |at is al|ready th|
|00003e70| 65 72 65 0a 75 73 75 61 | 6c 6c 79 20 64 6f 20 6e |ere.usua|lly do n|
|00003e80| 6f 74 20 6e 65 65 64 20 | 74 68 65 20 6f 76 65 72 |ot need |the over|
|00003e90| 68 65 61 64 20 6f 66 20 | 62 6f 74 68 20 73 70 61 |head of |both spa|
|00003ea0| 63 65 20 61 6e 64 20 74 | 69 6d 65 0a 61 73 73 6f |ce and t|ime.asso|
|00003eb0| 63 69 61 74 65 64 20 77 | 69 74 68 20 73 63 72 65 |ciated w|ith scre|
|00003ec0| 65 6e 20 75 70 64 61 74 | 69 6e 67 2e 0a 54 68 65 |en updat|ing..The|
|00003ed0| 79 20 73 68 6f 75 6c 64 | 20 69 6e 73 74 65 61 64 |y should| instead|
|00003ee0| 20 75 73 65 20 6d 6f 74 | 69 6f 6e 20 6f 70 74 69 | use mot|ion opti|
|00003ef0| 6d 69 7a 61 74 69 6f 6e | 2e 0a 2e 73 68 20 32 20 |mization|...sh 2 |
|00003f00| 22 54 77 69 6e 6b 6c 65 | 22 0a 2e 70 70 0a 54 68 |"Twinkle|"..pp.Th|
|00003f10| 65 0a 2e 62 20 74 77 69 | 6e 6b 6c 65 0a 70 72 6f |e..b twi|nkle.pro|
|00003f20| 67 72 61 6d 0a 69 73 20 | 61 20 67 6f 6f 64 20 63 |gram.is |a good c|
|00003f30| 61 6e 64 69 64 61 74 65 | 20 66 6f 72 20 73 69 6d |andidate| for sim|
|00003f40| 70 6c 65 20 6d 6f 74 69 | 6f 6e 20 6f 70 74 69 6d |ple moti|on optim|
|00003f50| 69 7a 61 74 69 6f 6e 2e | 0a 48 65 72 65 20 69 73 |ization.|.Here is|
|00003f60| 20 68 6f 77 20 69 74 20 | 63 6f 75 6c 64 20 62 65 | how it |could be|
|00003f70| 20 77 72 69 74 74 65 6e | 0a 28 6f 6e 6c 79 20 74 | written|.(only t|
|00003f80| 68 65 20 72 6f 75 74 69 | 6e 65 73 20 74 68 61 74 |he routi|nes that|
|00003f90| 20 68 61 76 65 20 62 65 | 65 6e 20 63 68 61 6e 67 | have be|en chang|
|00003fa0| 65 64 20 61 72 65 20 73 | 68 6f 77 6e 29 3a 0a 2e |ed are s|hown):..|
|00003fb0| 28 6c 0a 2e 73 6f 20 74 | 77 69 6e 6b 6c 65 32 2e |(l..so t|winkle2.|
|00003fc0| 67 72 0a 2e 29 6c 0a 61 | 74 69 6f 6e 22 0a 2e 70 |gr..)l.a|tion"..p|
|00003fd0| 70 0a 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |p.The fo|llowing |
|00003fe0| 65 78 61 6d 70 6c 65 20 | 73 68 6f 77 73 20 68 6f |example |shows ho|
|00003ff0| 77 20 6d 6f 74 69 6f 6e | 20 6f 70 74 69 6d 69 7a |w motion| optimiz|
|00004000| 4d 61 6e 75 61 6c 2f 63 | 5f 6d 61 63 72 6f 73 00 |Manual/c|_macros.|
|00004010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004060| 00 00 00 00 30 30 30 36 | 36 34 20 00 30 30 30 31 |....0006|64 .0001|
|00004070| 34 37 20 00 30 30 30 33 | 30 33 20 00 30 30 30 30 |47 .0003|03 .0000|
|00004080| 30 30 30 31 30 37 35 20 | 30 34 31 30 33 37 32 32 |0001075 |04103722|
|00004090| 34 33 30 20 30 30 37 35 | 33 35 00 20 20 00 00 00 |430 0075|35. ...|
|000040a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004200| 2e 5c 22 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |.\" Copy|right 19|
|00004210| 38 30 20 4b 65 6e 6e 65 | 74 68 20 43 2e 20 52 2e |80 Kenne|th C. R.|
|00004220| 20 43 2e 20 41 72 6e 6f | 6c 64 20 61 6e 64 20 54 | C. Arno|ld and T|
|00004230| 68 65 20 52 65 67 65 6e | 74 73 20 6f 66 20 74 68 |he Regen|ts of th|
|00004240| 65 0a 2e 5c 22 20 55 6e | 69 76 65 72 73 69 74 79 |e..\" Un|iversity|
|00004250| 20 6f 66 20 43 61 6c 69 | 66 6f 72 6e 69 61 2e 20 | of Cali|fornia. |
|00004260| 20 50 65 72 6d 69 73 73 | 69 6f 6e 20 69 73 20 67 | Permiss|ion is g|
|00004270| 72 61 6e 74 65 64 20 74 | 6f 20 66 72 65 65 6c 79 |ranted t|o freely|
|00004280| 0a 2e 5c 22 20 64 69 73 | 74 72 69 62 75 74 65 20 |..\" dis|tribute |
|00004290| 63 75 72 73 65 73 20 61 | 6e 64 20 69 74 73 20 64 |curses a|nd its d|
|000042a0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 70 72 6f |ocumenta|tion pro|
|000042b0| 76 69 64 65 64 20 74 68 | 61 74 20 74 68 69 73 0a |vided th|at this.|
|000042c0| 2e 5c 22 20 6e 6f 74 69 | 63 65 20 69 73 20 6c 65 |.\" noti|ce is le|
|000042d0| 66 74 20 69 6e 74 61 63 | 74 2e 0a 2e 5c 22 0a 2e |ft intac|t...\"..|
|000042e0| 5c 22 09 40 28 23 29 63 | 5f 6d 61 63 72 6f 73 09 |\".@(#)c|_macros.|
|000042f0| 36 2e 31 20 28 42 65 72 | 6b 65 6c 65 79 29 20 34 |6.1 (Ber|keley) 4|
|00004300| 2f 32 33 2f 38 36 0a 2e | 5c 22 0a 27 69 65 20 74 |/23/86..|\".'ie t|
|00004310| 20 27 64 73 20 5f 20 5c | 64 5c 28 6d 69 5c 75 0a | 'ds _ \|d\(mi\u.|
|00004320| 27 65 6c 20 27 64 73 20 | 5f 20 5f 0a 27 74 72 20 |'el 'ds |_ _.'tr |
|00004330| 2a 5c 28 2a 2a 0a 27 70 | 73 20 39 70 0a 27 76 73 |*\(**.'p|s 9p.'vs|
|00004340| 20 31 30 70 0a 27 64 73 | 20 2d 20 5c 28 6d 69 0a | 10p.'ds| - \(mi.|
|00004350| 27 64 73 20 2f 2a 20 5c | 5c 68 27 5c 5c 77 27 20 |'ds /* \|\h'\\w' |
|00004360| 27 75 2d 5c 5c 77 27 2f | 27 75 27 2f 2a 0a 27 62 |'u-\\w'/|'u'/*.'b|
|00004370| 64 20 42 20 33 0a 27 62 | 64 20 53 20 42 20 33 0a |d B 3.'b|d S B 3.|
|00004380| 27 6e 72 20 63 6d 20 30 | 0a 27 6e 66 0a 27 64 65 |'nr cm 0|.'nf.'de|
|00004390| 20 28 29 0a 27 70 6e 20 | 31 0a 2e 2e 0a 27 64 65 | ().'pn |1....'de|
|000043a0| 20 2b 43 0a 27 6e 72 20 | 63 6d 20 31 0a 27 66 74 | +C.'nr |cm 1.'ft|
|000043b0| 20 32 0a 27 64 73 20 2b | 4b 0a 27 64 73 20 2d 4b | 2.'ds +|K.'ds -K|
|000043c0| 0a 2e 2e 0a 27 64 65 20 | 2d 43 0a 27 6e 72 20 63 |....'de |-C.'nr c|
|000043d0| 6d 20 30 0a 27 66 74 20 | 31 0a 2e 69 65 20 74 20 |m 0.'ft |1..ie t |
|000043e0| 27 64 73 20 2b 4b 20 5c | 66 33 0a 2e 65 6c 20 27 |'ds +K \|f3..el '|
|000043f0| 64 73 20 2b 4b 20 5c 66 | 49 0a 27 64 73 20 2d 4b |ds +K \f|I.'ds -K|
|00004400| 20 5c 66 50 0a 2e 2e 0a | 27 2b 43 0a 27 2d 43 0a | \fP....|'+C.'-C.|
|00004410| 27 61 6d 20 2b 43 0a 27 | 6e 65 20 33 0a 2e 2e 0a |'am +C.'|ne 3....|
|00004420| 27 64 65 20 2d 46 0a 27 | 72 6d 20 3d 66 0a 2e 2e |'de -F.'|rm =f...|
|00004430| 0a 27 66 74 20 31 0a 27 | 6c 67 20 30 0a 20 74 68 |.'ft 1.'|lg 0. th|
|00004440| 65 0a 2e 5c 22 20 55 6e | 69 76 65 72 73 69 74 79 |e..\" Un|iversity|
|00004450| 20 6f 66 20 43 61 6c 69 | 66 6f 72 6e 69 61 2e 20 | of Cali|fornia. |
|00004460| 20 50 65 72 6d 69 73 73 | 69 6f 6e 20 69 73 20 67 | Permiss|ion is g|
|00004470| 72 61 6e 74 65 64 20 74 | 6f 20 66 72 65 65 6c 79 |ranted t|o freely|
|00004480| 0a 2e 5c 22 20 64 69 73 | 74 72 69 62 75 74 65 20 |..\" dis|tribute |
|00004490| 63 75 72 73 65 73 20 61 | 6e 64 20 69 74 73 20 64 |curses a|nd its d|
|000044a0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 70 72 6f |ocumenta|tion pro|
|000044b0| 76 69 64 65 64 20 74 68 | 61 74 20 74 68 69 73 0a |vided th|at this.|
|000044c0| 2e 5c 22 20 6e 6f 74 69 | 63 65 20 69 73 20 6c 65 |.\" noti|ce is le|
|000044d0| 66 74 20 69 6e 74 61 63 | 74 2e 0a 2e 5c 22 0a 2e |ft intac|t...\"..|
|000044e0| 5c 22 09 40 28 23 29 63 | 5f 6d 61 63 72 6f 73 09 |\".@(#)c|_macros.|
|000044f0| 36 2e 31 20 28 42 65 72 | 6b 65 6c 65 79 29 20 34 |6.1 (Ber|keley) 4|
|00004500| 2f 32 33 2f 38 36 0a 2e | 5c 22 0a 27 69 65 20 74 |/23/86..|\".'ie t|
|00004510| 20 27 64 73 20 5f 20 5c | 64 5c 28 6d 69 5c 75 0a | 'ds _ \|d\(mi\u.|
|00004520| 27 65 6c 20 27 64 73 20 | 5f 20 5f 0a 27 74 72 20 |'el 'ds |_ _.'tr |
|00004530| 2a 5c 28 2a 2a 0a 27 70 | 73 20 39 70 0a 27 76 73 |*\(**.'p|s 9p.'vs|
|00004540| 20 31 30 70 0a 27 64 73 | 20 2d 20 5c 28 6d 69 0a | 10p.'ds| - \(mi.|
|00004550| 27 64 73 20 2f 2a 20 5c | 5c 68 27 5c 5c 77 27 20 |'ds /* \|\h'\\w' |
|00004560| 27 75 2d 5c 5c 77 27 2f | 27 75 27 2f 2a 0a 27 62 |'u-\\w'/|'u'/*.'b|
|00004570| 64 20 42 20 33 0a 27 62 | 64 20 53 20 42 20 33 0a |d B 3.'b|d S B 3.|
|00004580| 27 6e 72 20 63 6d 20 30 | 0a 27 6e 66 0a 27 64 65 |'nr cm 0|.'nf.'de|
|00004590| 20 28 29 0a 27 70 6e 20 | 31 0a 2e 2e 0a 27 64 65 | ().'pn |1....'de|
|000045a0| 20 2b 43 0a 27 6e 72 20 | 63 6d 20 31 0a 27 66 74 | +C.'nr |cm 1.'ft|
|000045b0| 20 32 0a 27 64 73 20 2b | 4b 0a 27 64 73 20 2d 4b | 2.'ds +|K.'ds -K|
|000045c0| 0a 2e 2e 0a 27 64 65 20 | 2d 43 0a 27 6e 72 20 63 |....'de |-C.'nr c|
|000045d0| 6d 20 30 0a 27 66 74 20 | 31 0a 2e 69 65 20 74 20 |m 0.'ft |1..ie t |
|000045e0| 27 64 73 20 2b 4b 20 5c | 66 33 0a 2e 65 6c 20 27 |'ds +K \|f3..el '|
|000045f0| 64 73 20 2b 4b 20 5c 66 | 49 0a 27 64 73 20 2d 4b |ds +K \f|I.'ds -K|
|00004600| 4d 61 6e 75 61 6c 2f 64 | 6f 63 2e 49 00 00 00 00 |Manual/d|oc.I....|
|00004610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004660| 00 00 00 00 30 30 30 36 | 36 34 20 00 30 30 30 31 |....0006|64 .0001|
|00004670| 34 37 20 00 30 30 30 33 | 30 33 20 00 30 30 30 30 |47 .0003|03 .0000|
|00004680| 30 30 31 33 36 32 31 20 | 30 34 31 30 33 37 32 32 |0013621 |04103722|
|00004690| 34 33 31 20 30 30 36 37 | 30 34 00 20 20 00 00 00 |431 0067|04. ...|
|000046a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004800| 2e 5c 22 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |.\" Copy|right 19|
|00004810| 38 30 20 4b 65 6e 6e 65 | 74 68 20 43 2e 20 52 2e |80 Kenne|th C. R.|
|00004820| 20 43 2e 20 41 72 6e 6f | 6c 64 20 61 6e 64 20 54 | C. Arno|ld and T|
|00004830| 68 65 20 52 65 67 65 6e | 74 73 20 6f 66 20 74 68 |he Regen|ts of th|
|00004840| 65 0a 2e 5c 22 20 55 6e | 69 76 65 72 73 69 74 79 |e..\" Un|iversity|
|00004850| 20 6f 66 20 43 61 6c 69 | 66 6f 72 6e 69 61 2e 20 | of Cali|fornia. |
|00004860| 20 50 65 72 6d 69 73 73 | 69 6f 6e 20 69 73 20 67 | Permiss|ion is g|
|00004870| 72 61 6e 74 65 64 20 74 | 6f 20 66 72 65 65 6c 79 |ranted t|o freely|
|00004880| 0a 2e 5c 22 20 64 69 73 | 74 72 69 62 75 74 65 20 |..\" dis|tribute |
|00004890| 63 75 72 73 65 73 20 61 | 6e 64 20 69 74 73 20 64 |curses a|nd its d|
|000048a0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 70 72 6f |ocumenta|tion pro|
|000048b0| 76 69 64 65 64 20 74 68 | 61 74 20 74 68 69 73 0a |vided th|at this.|
|000048c0| 2e 5c 22 20 6e 6f 74 69 | 63 65 20 69 73 20 6c 65 |.\" noti|ce is le|
|000048d0| 66 74 20 69 6e 74 61 63 | 74 2e 0a 2e 5c 22 0a 2e |ft intac|t...\"..|
|000048e0| 5c 22 09 40 28 23 29 64 | 6f 63 2e 49 09 36 2e 31 |\".@(#)d|oc.I.6.1|
|000048f0| 20 28 42 65 72 6b 65 6c | 65 79 29 20 34 2f 32 33 | (Berkel|ey) 4/23|
|00004900| 2f 38 36 0a 2e 5c 22 0a | 2e 44 73 0a 2e 46 64 20 |/86..\".|.Ds..Fd |
|00004910| 61 64 64 63 68 20 63 68 | 20 5c 2a 6d 0a 63 68 61 |addch ch| \*m.cha|
|00004920| 72 09 63 68 3b 0a 2e 46 | 64 20 77 61 64 64 63 68 |r.ch;..F|d waddch|
|00004930| 20 77 69 6e 5c 2a 2c 63 | 68 0a 57 49 4e 44 4f 57 | win\*,c|h.WINDOW|
|00004940| 09 2a 77 69 6e 3b 0a 63 | 68 61 72 09 63 68 3b 0a |.*win;.c|har.ch;.|
|00004950| 2e 44 65 0a 41 64 64 20 | 74 68 65 20 63 68 61 72 |.De.Add |the char|
|00004960| 61 63 74 65 72 0a 2e 56 | 6e 20 63 68 0a 6f 6e 20 |acter..V|n ch.on |
|00004970| 74 68 65 20 77 69 6e 64 | 6f 77 0a 61 74 20 74 68 |the wind|ow.at th|
|00004980| 65 20 63 75 72 72 65 6e | 74 20 5c 2a 79 2e 0a 49 |e curren|t \*y..I|
|00004990| 66 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 20 |f the ch|aracter |
|000049a0| 69 73 20 61 20 6e 65 77 | 6c 69 6e 65 0a 28 5c 27 |is a new|line.(\'|
|000049b0| 5c 65 6e 5c 27 29 0a 74 | 68 65 20 6c 69 6e 65 20 |\en\').t|he line |
|000049c0| 77 69 6c 6c 20 62 65 20 | 63 6c 65 61 72 65 64 20 |will be |cleared |
|000049d0| 74 6f 20 74 68 65 20 65 | 6e 64 2c 0a 61 6e 64 20 |to the e|nd,.and |
|000049e0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 5c 2a 79 20 |the curr|ent \*y |
|000049f0| 77 69 6c 6c 20 62 65 20 | 63 68 61 6e 67 65 64 20 |will be |changed |
|00004a00| 74 6f 20 74 68 65 0a 62 | 65 67 69 6e 6e 69 6e 67 |to the.b|eginning|
|00004a10| 20 6f 66 66 20 74 68 65 | 20 6e 65 78 74 20 6c 69 | off the| next li|
|00004a20| 6e 65 0a 69 66 20 6e 65 | 77 6c 69 6e 65 20 6d 61 |ne.if ne|wline ma|
|00004a30| 70 70 69 6e 67 20 69 73 | 20 6f 6e 2c 0a 6f 72 20 |pping is| on,.or |
|00004a40| 74 6f 20 74 68 65 20 6e | 65 78 74 20 6c 69 6e 65 |to the n|ext line|
|00004a50| 20 61 74 20 74 68 65 20 | 73 61 6d 65 20 78 20 63 | at the |same x c|
|00004a60| 6f 2d 6f 72 64 69 6e 61 | 74 65 0a 69 66 20 69 74 |o-ordina|te.if it|
|00004a70| 20 69 73 20 6f 66 66 2e | 0a 41 20 72 65 74 75 72 | is off.|.A retur|
|00004a80| 6e 0a 28 5c 27 5c 65 72 | 5c 27 29 0a 77 69 6c 6c |n.(\'\er|\').will|
|00004a90| 20 6d 6f 76 65 20 74 6f | 20 74 68 65 20 62 65 67 | move to| the beg|
|00004aa0| 69 6e 6e 69 6e 67 20 6f | 66 20 74 68 65 20 6c 69 |inning o|f the li|
|00004ab0| 6e 65 20 6f 6e 20 74 68 | 65 20 77 69 6e 64 6f 77 |ne on th|e window|
|00004ac0| 2e 0a 54 61 62 73 0a 28 | 5c 27 5c 65 74 5c 27 29 |..Tabs.(|\'\et\')|
|00004ad0| 0a 77 69 6c 6c 20 62 65 | 20 65 78 70 61 6e 64 65 |.will be| expande|
|00004ae0| 64 20 69 6e 74 6f 20 73 | 70 61 63 65 73 0a 69 6e |d into s|paces.in|
|00004af0| 20 74 68 65 20 6e 6f 72 | 6d 61 6c 20 74 61 62 73 | the nor|mal tabs|
|00004b00| 74 6f 70 20 70 6f 73 69 | 74 69 6f 6e 73 20 6f 66 |top posi|tions of|
|00004b10| 0a 65 76 65 72 79 20 65 | 69 67 68 74 20 63 68 61 |.every e|ight cha|
|00004b20| 72 61 63 74 65 72 73 2e | 0a 5c 2a 28 45 73 0a 2e |racters.|.\*(Es..|
|00004b30| 44 73 0a 2e 46 64 20 61 | 64 64 73 74 72 20 73 74 |Ds..Fd a|ddstr st|
|00004b40| 72 20 5c 2a 6d 0a 63 68 | 61 72 09 2a 73 74 72 3b |r \*m.ch|ar.*str;|
|00004b50| 0a 2e 46 64 20 77 61 64 | 64 73 74 72 20 77 69 6e |..Fd wad|dstr win|
|00004b60| 5c 2a 2c 73 74 72 0a 57 | 49 4e 44 4f 57 09 2a 77 |\*,str.W|INDOW.*w|
|00004b70| 69 6e 3b 0a 63 68 61 72 | 09 2a 73 74 72 3b 0a 2e |in;.char|.*str;..|
|00004b80| 44 65 0a 41 64 64 20 74 | 68 65 20 73 74 72 69 6e |De.Add t|he strin|
|00004b90| 67 20 70 6f 69 6e 74 65 | 64 20 74 6f 20 62 79 0a |g pointe|d to by.|
|00004ba0| 2e 56 6e 20 73 74 72 0a | 6f 6e 20 74 68 65 20 77 |.Vn str.|on the w|
|00004bb0| 69 6e 64 6f 77 20 61 74 | 20 74 68 65 20 63 75 72 |indow at| the cur|
|00004bc0| 72 65 6e 74 20 5c 2a 79 | 2e 0a 5c 2a 28 45 73 0a |rent \*y|..\*(Es.|
|00004bd0| 49 6e 20 74 68 69 73 20 | 63 61 73 65 2c 20 69 74 |In this |case, it|
|00004be0| 20 77 69 6c 6c 20 70 75 | 74 20 6f 6e 20 61 73 20 | will pu|t on as |
|00004bf0| 6d 75 63 68 20 61 73 20 | 69 74 20 63 61 6e 2e 0a |much as |it can..|
|00004c00| 2e 44 73 0a 2e 46 64 20 | 62 6f 78 20 77 69 6e 5c |.Ds..Fd |box win\|
|00004c10| 2a 2c 76 65 72 74 5c 2a | 2c 68 6f 72 0a 57 49 4e |*,vert\*|,hor.WIN|
|00004c20| 44 4f 57 09 2a 77 69 6e | 3b 0a 63 68 61 72 09 76 |DOW.*win|;.char.v|
|00004c30| 65 72 74 5c 2a 2c 68 6f | 72 3b 0a 2e 44 65 0a 2e |ert\*,ho|r;..De..|
|00004c40| 50 70 0a 44 72 61 77 73 | 20 61 20 62 6f 78 20 61 |Pp.Draws| a box a|
|00004c50| 72 6f 75 6e 64 20 74 68 | 65 20 77 69 6e 64 6f 77 |round th|e window|
|00004c60| 20 75 73 69 6e 67 0a 2e | 56 6e 20 76 65 72 74 0a | using..|Vn vert.|
|00004c70| 61 73 20 74 68 65 20 63 | 68 61 72 61 63 74 65 72 |as the c|haracter|
|00004c80| 20 66 6f 72 20 64 72 61 | 77 69 6e 67 20 74 68 65 | for dra|wing the|
|00004c90| 20 76 65 72 74 69 63 61 | 6c 20 73 69 64 65 73 2c | vertica|l sides,|
|00004ca0| 20 61 6e 64 0a 2e 56 6e | 20 68 6f 72 0a 66 6f 72 | and..Vn| hor.for|
|00004cb0| 20 64 72 61 77 69 6e 67 | 20 74 68 65 20 68 6f 72 | drawing| the hor|
|00004cc0| 69 7a 6f 6e 74 61 6c 20 | 6c 69 6e 65 73 2e 0a 49 |izontal |lines..I|
|00004cd0| 66 20 73 63 72 6f 6c 6c | 69 6e 67 20 69 73 20 6e |f scroll|ing is n|
|00004ce0| 6f 74 20 61 6c 6c 6f 77 | 65 64 2c 0a 61 6e 64 20 |ot allow|ed,.and |
|00004cf0| 74 68 65 20 77 69 6e 64 | 6f 77 20 65 6e 63 6f 6d |the wind|ow encom|
|00004d00| 70 61 73 73 65 73 20 74 | 68 65 20 6c 6f 77 65 72 |passes t|he lower|
|00004d10| 20 72 69 67 68 74 2d 68 | 61 6e 64 20 63 6f 72 6e | right-h|and corn|
|00004d20| 65 72 20 6f 66 20 74 68 | 65 20 74 65 72 6d 69 6e |er of th|e termin|
|00004d30| 61 6c 2c 0a 74 68 65 20 | 63 6f 72 6e 65 72 73 20 |al,.the |corners |
|00004d40| 61 72 65 20 6c 65 66 74 | 20 62 6c 61 6e 6b 20 74 |are left| blank t|
|00004d50| 6f 20 61 76 6f 69 64 20 | 61 20 73 63 72 6f 6c 6c |o avoid |a scroll|
|00004d60| 2e 0a 2e 44 73 0a 2e 46 | 64 20 63 6c 65 61 72 20 |...Ds..F|d clear |
|00004d70| 22 22 20 5c 2a 6d 0a 2e | 46 64 20 77 63 6c 65 61 |"" \*m..|Fd wclea|
|00004d80| 72 20 77 69 6e 0a 57 49 | 4e 44 4f 57 09 2a 77 69 |r win.WI|NDOW.*wi|
|00004d90| 6e 3b 0a 2e 44 65 0a 52 | 65 73 65 74 73 20 74 68 |n;..De.R|esets th|
|00004da0| 65 20 65 6e 74 69 72 65 | 20 77 69 6e 64 6f 77 20 |e entire| window |
|00004db0| 74 6f 20 62 6c 61 6e 6b | 73 2e 0a 49 66 0a 2e 56 |to blank|s..If..V|
|00004dc0| 6e 20 77 69 6e 0a 69 73 | 20 61 20 73 63 72 65 65 |n win.is| a scree|
|00004dd0| 6e 2c 0a 74 68 69 73 20 | 73 65 74 73 20 74 68 65 |n,.this |sets the|
|00004de0| 20 63 6c 65 61 72 20 66 | 6c 61 67 2c 0a 77 68 69 | clear f|lag,.whi|
|00004df0| 63 68 20 77 69 6c 6c 20 | 63 61 75 73 65 20 61 20 |ch will |cause a |
|00004e00| 63 6c 65 61 72 2d 73 63 | 72 65 65 6e 20 73 65 71 |clear-sc|reen seq|
|00004e10| 75 65 6e 63 65 20 74 6f | 20 62 65 20 73 65 6e 74 |uence to| be sent|
|00004e20| 0a 6f 6e 20 74 68 65 20 | 6e 65 78 74 0a 2e 46 6e |.on the |next..Fn|
|00004e30| 20 72 65 66 72 65 73 68 | 0a 63 61 6c 6c 2e 0a 54 | refresh|.call..T|
|00004e40| 68 69 73 20 61 6c 73 6f | 20 6d 6f 76 65 73 20 74 |his also| moves t|
|00004e50| 68 65 20 63 75 72 72 65 | 6e 74 20 5c 2a 79 0a 74 |he curre|nt \*y.t|
|00004e60| 6f 20 28 30 5c 2a 2c 30 | 29 2e 0a 2e 44 73 0a 2e |o (0\*,0|)...Ds..|
|00004e70| 46 64 20 63 6c 65 61 72 | 6f 6b 20 73 63 72 5c 2a |Fd clear|ok scr\*|
|00004e80| 2c 62 6f 6f 6c 66 20 5c | 2a 6d 0a 57 49 4e 44 4f |,boolf \|*m.WINDO|
|00004e90| 57 09 2a 73 63 72 3b 0a | 62 6f 6f 6c 09 62 6f 6f |W.*scr;.|bool.boo|
|00004ea0| 6c 66 3b 0a 2e 44 65 0a | 53 65 74 73 20 74 68 65 |lf;..De.|Sets the|
|00004eb0| 20 63 6c 65 61 72 20 66 | 6c 61 67 20 66 6f 72 20 | clear f|lag for |
|00004ec0| 74 68 65 20 73 63 72 65 | 65 6e 0a 2e 56 6e 20 73 |the scre|en..Vn s|
|00004ed0| 63 72 20 2e 0a 49 66 0a | 2e 56 6e 20 62 6f 6f 6c |cr ..If.|.Vn bool|
|00004ee0| 66 0a 69 73 20 54 52 55 | 45 2c 0a 74 68 69 73 20 |f.is TRU|E,.this |
|00004ef0| 77 69 6c 6c 20 66 6f 72 | 63 65 20 61 20 63 6c 65 |will for|ce a cle|
|00004f00| 61 72 2d 73 63 72 65 65 | 6e 20 74 6f 20 62 65 20 |ar-scree|n to be |
|00004f10| 70 72 69 6e 74 65 64 20 | 6f 6e 20 74 68 65 20 6e |printed |on the n|
|00004f20| 65 78 74 0a 2e 46 6e 20 | 72 65 66 72 65 73 68 20 |ext..Fn |refresh |
|00004f30| 2c 0a 6f 72 20 73 74 6f | 70 20 69 74 20 66 72 6f |,.or sto|p it fro|
|00004f40| 6d 20 64 6f 69 6e 67 20 | 73 6f 20 69 66 0a 2e 56 |m doing |so if..V|
|00004f50| 6e 20 62 6f 6f 6c 66 0a | 69 73 20 46 41 4c 53 45 |n boolf.|is FALSE|
|00004f60| 2e 0a 54 68 69 73 20 6f | 6e 6c 79 20 77 6f 72 6b |..This o|nly work|
|00004f70| 73 20 6f 6e 20 73 63 72 | 65 65 6e 73 2c 0a 61 6e |s on scr|eens,.an|
|00004f80| 64 2c 0a 75 6e 6c 69 6b | 65 0a 2e 46 6e 20 63 6c |d,.unlik|e..Fn cl|
|00004f90| 65 61 72 20 2c 0a 64 6f | 65 73 20 6e 6f 74 20 61 |ear ,.do|es not a|
|00004fa0| 6c 74 65 72 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |lter the| content|
|00004fb0| 73 20 6f 66 20 74 68 65 | 20 73 63 72 65 65 6e 2e |s of the| screen.|
|00004fc0| 0a 49 66 0a 2e 56 6e 20 | 73 63 72 0a 69 73 0a 2e |.If..Vn |scr.is..|
|00004fd0| 56 6e 20 63 75 72 73 63 | 72 20 2c 0a 74 68 65 20 |Vn cursc|r ,.the |
|00004fe0| 6e 65 78 74 0a 2e 46 6e | 20 72 65 66 72 65 73 68 |next..Fn| refresh|
|00004ff0| 0a 63 61 6c 6c 20 77 69 | 6c 6c 20 63 61 75 73 65 |.call wi|ll cause|
|00005000| 20 61 20 63 6c 65 61 72 | 2d 73 63 72 65 65 6e 2c | a clear|-screen,|
|00005010| 0a 65 76 65 6e 20 69 66 | 20 74 68 65 20 77 69 6e |.even if| the win|
|00005020| 64 6f 77 20 70 61 73 73 | 65 64 20 74 6f 0a 2e 46 |dow pass|ed to..F|
|00005030| 6e 20 72 65 66 72 65 73 | 68 0a 69 73 20 6e 6f 74 |n refres|h.is not|
|00005040| 20 61 20 73 63 72 65 65 | 6e 2e 0a 2e 44 73 0a 2e | a scree|n...Ds..|
|00005050| 46 64 20 63 6c 72 74 6f | 62 6f 74 20 22 22 20 5c |Fd clrto|bot "" \|
|00005060| 2a 6d 0a 2e 46 64 20 77 | 63 6c 72 74 6f 62 6f 74 |*m..Fd w|clrtobot|
|00005070| 20 77 69 6e 0a 57 49 4e | 44 4f 57 09 2a 77 69 6e | win.WIN|DOW.*win|
|00005080| 3b 0a 2e 44 65 0a 57 69 | 70 65 73 20 74 68 65 20 |;..De.Wi|pes the |
|00005090| 77 69 6e 64 6f 77 20 63 | 6c 65 61 72 20 66 72 6f |window c|lear fro|
|000050a0| 6d 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 5c 2a |m the cu|rrent \*|
|000050b0| 79 20 74 6f 20 74 68 65 | 20 62 6f 74 74 6f 6d 2e |y to the| bottom.|
|000050c0| 0a 54 68 69 73 20 64 6f | 65 73 20 6e 6f 74 20 66 |.This do|es not f|
|000050d0| 6f 72 63 65 20 61 20 63 | 6c 65 61 72 2d 73 63 72 |orce a c|lear-scr|
|000050e0| 65 65 6e 20 73 65 71 75 | 65 6e 63 65 20 6f 6e 20 |een sequ|ence on |
|000050f0| 74 68 65 20 6e 65 78 74 | 20 72 65 66 72 65 73 68 |the next| refresh|
|00005100| 0a 75 6e 64 65 72 20 61 | 6e 79 20 63 69 72 63 75 |.under a|ny circu|
|00005110| 6d 73 74 61 6e 63 65 73 | 2e 0a 5c 2a 28 4e 6d 0a |mstances|..\*(Nm.|
|00005120| 2e 44 73 0a 2e 46 64 20 | 63 6c 72 74 6f 65 6f 6c |.Ds..Fd |clrtoeol|
|00005130| 20 22 22 20 5c 2a 6d 0a | 2e 46 64 20 77 63 6c 72 | "" \*m.|.Fd wclr|
|00005140| 74 6f 65 6f 6c 20 77 69 | 6e 0a 57 49 4e 44 4f 57 |toeol wi|n.WINDOW|
|00005150| 09 2a 77 69 6e 3b 0a 2e | 44 65 0a 57 69 70 65 73 |.*win;..|De.Wipes|
|00005160| 20 74 68 65 20 77 69 6e | 64 6f 77 20 63 6c 65 61 | the win|dow clea|
|00005170| 72 20 66 72 6f 6d 20 74 | 68 65 20 63 75 72 72 65 |r from t|he curre|
|00005180| 6e 74 20 5c 2a 79 20 74 | 6f 20 74 68 65 20 65 6e |nt \*y t|o the en|
|00005190| 64 20 6f 66 20 74 68 65 | 20 6c 69 6e 65 2e 0a 5c |d of the| line..\|
|000051a0| 2a 28 4e 6d 0a 2e 44 73 | 0a 2e 46 64 20 64 65 6c |*(Nm..Ds|..Fd del|
|000051b0| 63 68 0a 2e 46 64 20 77 | 64 65 6c 63 68 20 77 69 |ch..Fd w|delch wi|
|000051c0| 6e 0a 57 49 4e 44 4f 57 | 09 2a 77 69 6e 3b 0a 2e |n.WINDOW|.*win;..|
|000051d0| 44 65 0a 44 65 6c 65 74 | 65 20 74 68 65 20 63 68 |De.Delet|e the ch|
|000051e0| 61 72 61 63 74 65 72 20 | 61 74 20 74 68 65 20 63 |aracter |at the c|
|000051f0| 75 72 72 65 6e 74 20 5c | 2a 79 2e 0a 45 61 63 68 |urrent \|*y..Each|
|00005200| 20 63 68 61 72 61 63 74 | 65 72 20 61 66 74 65 72 | charact|er after|
|00005210| 20 69 74 20 6f 6e 20 74 | 68 65 20 6c 69 6e 65 20 | it on t|he line |
|00005220| 73 68 69 66 74 73 20 74 | 6f 20 74 68 65 20 6c 65 |shifts t|o the le|
|00005230| 66 74 2c 0a 61 6e 64 20 | 74 68 65 20 6c 61 73 74 |ft,.and |the last|
|00005240| 20 63 68 61 72 61 63 74 | 65 72 20 62 65 63 6f 6d | charact|er becom|
|00005250| 65 73 20 62 6c 61 6e 6b | 2e 0a 2e 44 73 0a 2e 46 |es blank|...Ds..F|
|00005260| 64 20 64 65 6c 65 74 65 | 6c 6e 0a 2e 46 64 20 77 |d delete|ln..Fd w|
|00005270| 64 65 6c 65 74 65 6c 6e | 20 77 69 6e 0a 57 49 4e |deleteln| win.WIN|
|00005280| 44 4f 57 09 2a 77 69 6e | 3b 0a 2e 44 65 0a 44 65 |DOW.*win|;..De.De|
|00005290| 6c 65 74 65 20 74 68 65 | 20 63 75 72 72 65 6e 74 |lete the| current|
|000052a0| 20 6c 69 6e 65 2e 0a 45 | 76 65 72 79 20 6c 69 6e | line..E|very lin|
|000052b0| 65 20 62 65 6c 6f 77 20 | 74 68 65 20 63 75 72 72 |e below |the curr|
|000052c0| 65 6e 74 20 6f 6e 65 20 | 77 69 6c 6c 20 6d 6f 76 |ent one |will mov|
|000052d0| 65 20 75 70 2c 0a 61 6e | 64 20 74 68 65 20 62 6f |e up,.an|d the bo|
|000052e0| 74 74 6f 6d 20 6c 69 6e | 65 20 77 69 6c 6c 20 62 |ttom lin|e will b|
|000052f0| 65 63 6f 6d 65 20 62 6c | 61 6e 6b 2e 0a 54 68 65 |ecome bl|ank..The|
|00005300| 20 63 75 72 72 65 6e 74 | 20 5c 2a 79 20 77 69 6c | current| \*y wil|
|00005310| 6c 20 72 65 6d 61 69 6e | 20 75 6e 63 68 61 6e 67 |l remain| unchang|
|00005320| 65 64 2e 0a 2e 44 73 0a | 2e 46 64 20 65 72 61 73 |ed...Ds.|.Fd eras|
|00005330| 65 20 22 22 20 5c 2a 6d | 0a 2e 46 64 20 77 65 72 |e "" \*m|..Fd wer|
|00005340| 61 73 65 20 77 69 6e 0a | 57 49 4e 44 4f 57 09 2a |ase win.|WINDOW.*|
|00005350| 77 69 6e 3b 0a 2e 44 65 | 0a 45 72 61 73 65 73 20 |win;..De|.Erases |
|00005360| 74 68 65 20 77 69 6e 64 | 6f 77 20 74 6f 20 62 6c |the wind|ow to bl|
|00005370| 61 6e 6b 73 20 77 69 74 | 68 6f 75 74 20 73 65 74 |anks wit|hout set|
|00005380| 74 69 6e 67 20 74 68 65 | 20 63 6c 65 61 72 20 66 |ting the| clear f|
|00005390| 6c 61 67 2e 0a 54 68 69 | 73 20 69 73 20 61 6e 61 |lag..Thi|s is ana|
|000053a0| 6c 61 67 6f 75 73 20 74 | 6f 0a 2e 46 6e 20 63 6c |lagous t|o..Fn cl|
|000053b0| 65 61 72 20 2c 0a 65 78 | 63 65 70 74 20 74 68 61 |ear ,.ex|cept tha|
|000053c0| 74 20 69 74 20 6e 65 76 | 65 72 20 63 61 75 73 65 |t it nev|er cause|
|000053d0| 73 20 61 20 63 6c 65 61 | 72 2d 73 63 72 65 65 6e |s a clea|r-screen|
|000053e0| 20 73 65 71 75 65 6e 63 | 65 20 74 6f 20 62 65 20 | sequenc|e to be |
|000053f0| 67 65 6e 65 72 61 74 65 | 64 0a 6f 6e 20 61 0a 2e |generate|d.on a..|
|00005400| 46 6e 20 72 65 66 72 65 | 73 68 20 2e 0a 5c 2a 28 |Fn refre|sh ..\*(|
|00005410| 4e 6d 0a 2e 44 73 0a 2e | 46 64 20 66 6c 75 73 68 |Nm..Ds..|Fd flush|
|00005420| 6f 6b 20 77 69 6e 5c 2a | 2c 62 6f 6f 6c 66 20 5c |ok win\*|,boolf \|
|00005430| 2a 6d 0a 57 49 4e 44 4f | 57 09 2a 77 69 6e 3b 0a |*m.WINDO|W.*win;.|
|00005440| 62 6f 6f 6c 09 62 6f 6f | 6c 66 3b 0a 2e 44 65 0a |bool.boo|lf;..De.|
|00005450| 4e 6f 72 6d 61 6c 6c 79 | 2c 0a 2e 46 6e 20 72 65 |Normally|,..Fn re|
|00005460| 66 72 65 73 68 0a 2e 46 | 6e 20 66 66 6c 75 73 68 |fresh..F|n fflush|
|00005470| 20 27 73 0a 2e 56 6e 20 | 73 74 64 6f 75 74 0a 77 | 's..Vn |stdout.w|
|00005480| 68 65 6e 20 69 74 20 69 | 73 20 66 69 6e 69 73 68 |hen it i|s finish|
|00005490| 65 64 2e 0a 2e 46 6e 20 | 66 6c 75 73 68 6f 6b 0a |ed...Fn |flushok.|
|000054a0| 61 6c 6c 6f 77 73 20 79 | 6f 75 20 74 6f 20 63 6f |allows y|ou to co|
|000054b0| 6e 74 72 6f 6c 20 74 68 | 69 73 2e 0a 69 66 0a 2e |ntrol th|is..if..|
|000054c0| 56 6e 20 62 6f 6f 6c 66 | 0a 69 73 20 54 52 55 45 |Vn boolf|.is TRUE|
|000054d0| 0a 28 5c 63 0a 2e 69 20 | 69 2e 65 2e 20 2c 0a 6e |.(\c..i |i.e. ,.n|
|000054e0| 6f 6e 2d 7a 65 72 6f 29 | 0a 69 74 20 77 69 6c 6c |on-zero)|.it will|
|000054f0| 20 64 6f 20 74 68 65 0a | 2e 46 6e 20 66 66 6c 75 | do the.|.Fn fflu|
|00005500| 73 68 20 3b 0a 69 66 20 | 69 74 20 69 73 20 46 41 |sh ;.if |it is FA|
|00005510| 4c 53 45 2e 0a 69 74 20 | 77 69 6c 6c 20 6e 6f 74 |LSE..it |will not|
|00005520| 2e 0a 2e 44 73 0a 2e 46 | 64 20 69 64 6c 6f 6b 20 |...Ds..F|d idlok |
|00005530| 77 69 6e 5c 2a 2c 62 6f | 6f 6c 66 0a 57 49 4e 44 |win\*,bo|olf.WIND|
|00005540| 4f 57 09 2a 77 69 6e 3b | 0a 62 6f 6f 6c 09 62 6f |OW.*win;|.bool.bo|
|00005550| 6f 6c 66 3b 0a 2e 44 65 | 0a 52 65 73 65 72 76 65 |olf;..De|.Reserve|
|00005560| 64 20 66 6f 72 20 66 75 | 74 75 72 65 20 75 73 65 |d for fu|ture use|
|00005570| 2e 0a 54 68 69 73 20 77 | 69 6c 6c 20 65 76 65 6e |..This w|ill even|
|00005580| 74 75 61 6c 6c 79 20 73 | 69 67 6e 61 6c 20 74 6f |tually s|ignal to|
|00005590| 0a 2e 46 6e 20 72 65 66 | 72 65 73 68 0a 74 68 61 |..Fn ref|resh.tha|
|000055a0| 74 20 69 74 20 69 73 20 | 61 6c 6c 20 72 69 67 68 |t it is |all righ|
|000055b0| 74 20 74 6f 20 75 73 65 | 20 74 68 65 20 69 6e 73 |t to use| the ins|
|000055c0| 65 72 74 20 61 6e 64 20 | 64 65 6c 65 74 65 20 6c |ert and |delete l|
|000055d0| 69 6e 65 20 73 65 71 75 | 65 6e 63 65 73 0a 77 68 |ine sequ|ences.wh|
|000055e0| 65 6e 20 75 70 64 61 74 | 69 6e 67 20 74 68 65 20 |en updat|ing the |
|000055f0| 77 69 6e 64 6f 77 2e 0a | 2e 44 73 0a 2e 46 64 20 |window..|.Ds..Fd |
|00005600| 69 6e 73 63 68 20 63 0a | 63 68 61 72 09 63 3b 0a |insch c.|char.c;.|
|00005610| 2e 46 64 20 77 69 6e 73 | 63 68 20 77 69 6e 5c 2a |.Fd wins|ch win\*|
|00005620| 2c 63 0a 57 49 4e 44 4f | 57 09 2a 77 69 6e 3b 0a |,c.WINDO|W.*win;.|
|00005630| 63 68 61 72 09 63 3b 0a | 2e 44 65 0a 49 6e 73 65 |char.c;.|.De.Inse|
|00005640| 72 74 0a 2e 56 6e 20 63 | 0a 61 74 20 74 68 65 20 |rt..Vn c|.at the |
|00005650| 63 75 72 72 65 6e 74 20 | 5c 2a 79 0a 45 61 63 68 |current |\*y.Each|
|00005660| 20 63 68 61 72 61 63 74 | 65 72 20 61 66 74 65 72 | charact|er after|
|00005670| 20 69 74 20 73 68 69 66 | 74 73 20 74 6f 20 74 68 | it shif|ts to th|
|00005680| 65 20 72 69 67 68 74 2c | 0a 61 6e 64 20 74 68 65 |e right,|.and the|
|00005690| 20 6c 61 73 74 20 63 68 | 61 72 61 63 74 65 72 20 | last ch|aracter |
|000056a0| 64 69 73 61 70 70 65 61 | 72 73 2e 0a 5c 2a 28 45 |disappea|rs..\*(E|
|000056b0| 73 0a 2e 44 73 0a 2e 46 | 64 20 69 6e 73 65 72 74 |s..Ds..F|d insert|
|000056c0| 6c 6e 0a 2e 46 64 20 77 | 69 6e 73 65 72 74 6c 6e |ln..Fd w|insertln|
|000056d0| 20 77 69 6e 0a 57 49 4e | 44 4f 57 09 2a 77 69 6e | win.WIN|DOW.*win|
|000056e0| 3b 0a 2e 44 65 0a 49 6e | 73 65 72 74 20 61 20 6c |;..De.In|sert a l|
|000056f0| 69 6e 65 20 61 62 6f 76 | 65 20 74 68 65 20 63 75 |ine abov|e the cu|
|00005700| 72 72 65 6e 74 20 6f 6e | 65 2e 0a 45 76 65 72 79 |rrent on|e..Every|
|00005710| 20 6c 69 6e 65 20 62 65 | 6c 6f 77 20 74 68 65 20 | line be|low the |
|00005720| 63 75 72 72 65 6e 74 20 | 6c 69 6e 65 0a 77 69 6c |current |line.wil|
|00005730| 6c 20 62 65 20 73 68 69 | 66 74 65 64 20 64 6f 77 |l be shi|fted dow|
|00005740| 6e 2c 0a 61 6e 64 20 74 | 68 65 20 62 6f 74 74 6f |n,.and t|he botto|
|00005750| 6d 20 6c 69 6e 65 20 77 | 69 6c 6c 20 64 69 73 61 |m line w|ill disa|
|00005760| 70 70 65 61 72 2e 0a 54 | 68 65 20 63 75 72 72 65 |ppear..T|he curre|
|00005770| 6e 74 20 6c 69 6e 65 20 | 77 69 6c 6c 20 62 65 63 |nt line |will bec|
|00005780| 6f 6d 65 20 62 6c 61 6e | 6b 2c 0a 61 6e 64 20 74 |ome blan|k,.and t|
|00005790| 68 65 20 63 75 72 72 65 | 6e 74 20 5c 2a 79 20 77 |he curre|nt \*y w|
|000057a0| 69 6c 6c 20 72 65 6d 61 | 69 6e 20 75 6e 63 68 61 |ill rema|in uncha|
|000057b0| 6e 67 65 64 2e 0a 2e 44 | 73 0a 2e 46 64 20 6d 6f |nged...D|s..Fd mo|
|000057c0| 76 65 20 79 5c 2a 2c 78 | 20 5c 2a 6d 0a 69 6e 74 |ve y\*,x| \*m.int|
|000057d0| 09 79 5c 2a 2c 78 3b 0a | 2e 46 64 20 77 6d 6f 76 |.y\*,x;.|.Fd wmov|
|000057e0| 65 20 77 69 6e 5c 2a 2c | 79 5c 2a 2c 78 0a 57 49 |e win\*,|y\*,x.WI|
|000057f0| 4e 44 4f 57 09 2a 77 69 | 6e 3b 0a 69 6e 74 09 79 |NDOW.*wi|n;.int.y|
|00005800| 5c 2a 2c 78 3b 0a 2e 44 | 65 0a 43 68 61 6e 67 65 |\*,x;..D|e.Change|
|00005810| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 5c 2a 79 | the cur|rent \*y|
|00005820| 20 6f 66 20 74 68 65 20 | 77 69 6e 64 6f 77 20 74 | of the |window t|
|00005830| 6f 0a 2e 56 6e 20 79 5c | 2a 2c 78 20 29 2e 20 28 |o..Vn y\|*,x ). (|
|00005840| 0a 5c 2a 28 45 73 0a 2e | 44 73 0a 2e 46 64 20 6f |.\*(Es..|Ds..Fd o|
|00005850| 76 65 72 6c 61 79 20 77 | 69 6e 31 5c 2a 2c 77 69 |verlay w|in1\*,wi|
|00005860| 6e 32 0a 57 49 4e 44 4f | 57 09 2a 77 69 6e 31 5c |n2.WINDO|W.*win1\|
|00005870| 2a 2c 2a 77 69 6e 32 3b | 0a 2e 44 65 0a 4f 76 65 |*,*win2;|..De.Ove|
|00005880| 72 6c 61 79 0a 2e 56 6e | 20 77 69 6e 31 0a 6f 6e |rlay..Vn| win1.on|
|00005890| 0a 2e 56 6e 20 77 69 6e | 32 20 2e 0a 54 68 65 20 |..Vn win|2 ..The |
|000058a0| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 0a 2e 56 6e 20 |contents| of..Vn |
|000058b0| 77 69 6e 31 20 2c 0a 69 | 6e 73 6f 66 61 72 20 61 |win1 ,.i|nsofar a|
|000058c0| 73 20 74 68 65 79 20 66 | 69 74 2c 0a 61 72 65 20 |s they f|it,.are |
|000058d0| 70 6c 61 63 65 64 20 6f | 6e 0a 2e 56 6e 20 77 69 |placed o|n..Vn wi|
|000058e0| 6e 32 0a 61 74 20 74 68 | 65 69 72 20 73 74 61 72 |n2.at th|eir star|
|000058f0| 74 69 6e 67 20 5c 2a 79 | 2e 0a 54 68 69 73 20 69 |ting \*y|..This i|
|00005900| 73 20 64 6f 6e 65 20 6e | 6f 6e 2d 64 65 73 74 72 |s done n|on-destr|
|00005910| 75 63 74 69 76 65 6c 79 | 2c 0a 69 2e 65 2e 2c 20 |uctively|,.i.e., |
|00005920| 62 6c 61 6e 6b 73 20 6f | 6e 0a 2e 56 6e 20 77 69 |blanks o|n..Vn wi|
|00005930| 6e 31 0a 6c 65 61 76 65 | 20 74 68 65 20 63 6f 6e |n1.leave| the con|
|00005940| 74 65 6e 74 73 20 6f 66 | 20 74 68 65 20 73 70 61 |tents of| the spa|
|00005950| 63 65 20 6f 6e 0a 2e 56 | 6e 20 77 69 6e 32 0a 75 |ce on..V|n win2.u|
|00005960| 6e 74 6f 75 63 68 65 64 | 2e 0a 2e 44 73 0a 2e 46 |ntouched|...Ds..F|
|00005970| 64 20 6f 76 65 72 77 72 | 69 74 65 20 77 69 6e 31 |d overwr|ite win1|
|00005980| 5c 2a 2c 77 69 6e 32 0a | 57 49 4e 44 4f 57 09 2a |\*,win2.|WINDOW.*|
|00005990| 77 69 6e 31 5c 2a 2c 2a | 77 69 6e 32 3b 0a 2e 44 |win1\*,*|win2;..D|
|000059a0| 65 0a 4f 76 65 72 77 72 | 69 74 65 0a 2e 56 6e 20 |e.Overwr|ite..Vn |
|000059b0| 77 69 6e 31 0a 6f 6e 0a | 2e 56 6e 20 77 69 6e 32 |win1.on.|.Vn win2|
|000059c0| 20 2e 0a 54 68 65 20 63 | 6f 6e 74 65 6e 74 73 20 | ..The c|ontents |
|000059d0| 6f 66 0a 2e 56 6e 20 77 | 69 6e 31 20 2c 0a 69 6e |of..Vn w|in1 ,.in|
|000059e0| 73 6f 66 61 72 20 61 73 | 20 74 68 65 79 20 66 69 |sofar as| they fi|
|000059f0| 74 2c 0a 61 72 65 20 70 | 6c 61 63 65 64 20 6f 6e |t,.are p|laced on|
|00005a00| 0a 2e 56 6e 20 77 69 6e | 32 0a 61 74 20 74 68 65 |..Vn win|2.at the|
|00005a10| 69 72 20 73 74 61 72 74 | 69 6e 67 20 5c 2a 79 2e |ir start|ing \*y.|
|00005a20| 0a 54 68 69 73 20 69 73 | 20 64 6f 6e 65 20 64 65 |.This is| done de|
|00005a30| 73 74 72 75 63 74 69 76 | 65 6c 79 2c 0a 2e 69 20 |structiv|ely,..i |
|00005a40| 69 2e 65 2e 20 2c 0a 62 | 6c 61 6e 6b 73 20 6f 6e |i.e. ,.b|lanks on|
|00005a50| 0a 2e 56 6e 20 77 69 6e | 31 0a 62 65 63 6f 6d 65 |..Vn win|1.become|
|00005a60| 20 62 6c 61 6e 6b 20 6f | 6e 0a 2e 56 6e 20 77 69 | blank o|n..Vn wi|
|00005a70| 6e 32 20 2e 0a 2e 44 73 | 0a 2e 46 64 20 70 72 69 |n2 ...Ds|..Fd pri|
|00005a80| 6e 74 77 20 66 6d 74 5c | 2a 2c 61 72 67 31 5c 2a |ntw fmt\|*,arg1\*|
|00005a90| 2c 61 72 67 32 5c 2a 2c | 2e 2e 2e 0a 63 68 61 72 |,arg2\*,|....char|
|00005aa0| 09 2a 66 6d 74 3b 0a 2e | 46 64 20 77 70 72 69 6e |.*fmt;..|Fd wprin|
|00005ab0| 74 77 20 77 69 6e 5c 2a | 2c 66 6d 74 5c 2a 2c 61 |tw win\*|,fmt\*,a|
|00005ac0| 72 67 31 5c 2a 2c 61 72 | 67 32 5c 2a 2c 2e 2e 2e |rg1\*,ar|g2\*,...|
|00005ad0| 0a 57 49 4e 44 4f 57 09 | 2a 77 69 6e 3b 0a 63 68 |.WINDOW.|*win;.ch|
|00005ae0| 61 72 09 2a 66 6d 74 3b | 0a 2e 44 65 0a 50 65 72 |ar.*fmt;|..De.Per|
|00005af0| 66 6f 72 6d 73 20 61 0a | 2e 46 6e 20 70 72 69 6e |forms a.|.Fn prin|
|00005b00| 74 66 0a 6f 6e 20 74 68 | 65 20 77 69 6e 64 6f 77 |tf.on th|e window|
|00005b10| 20 73 74 61 72 74 69 6e | 67 20 61 74 20 74 68 65 | startin|g at the|
|00005b20| 20 63 75 72 72 65 6e 74 | 20 5c 2a 79 2e 0a 49 74 | current| \*y..It|
|00005b30| 20 75 73 65 73 0a 2e 46 | 6e 20 61 64 64 73 74 72 | uses..F|n addstr|
|00005b40| 0a 74 6f 20 61 64 64 20 | 74 68 65 20 73 74 72 69 |.to add |the stri|
|00005b50| 6e 67 20 6f 6e 20 74 68 | 65 20 77 69 6e 64 6f 77 |ng on th|e window|
|00005b60| 2e 0a 49 74 20 69 73 20 | 6f 66 74 65 6e 20 61 64 |..It is |often ad|
|00005b70| 76 69 73 61 62 6c 65 20 | 74 6f 20 75 73 65 20 74 |visable |to use t|
|00005b80| 68 65 20 66 69 65 6c 64 | 20 77 69 64 74 68 20 6f |he field| width o|
|00005b90| 70 74 69 6f 6e 73 20 6f | 66 0a 2e 46 6e 20 70 72 |ptions o|f..Fn pr|
|00005ba0| 69 6e 74 66 0a 74 6f 20 | 61 76 6f 69 64 20 6c 65 |intf.to |avoid le|
|00005bb0| 61 76 69 6e 67 20 74 68 | 69 6e 67 73 20 6f 6e 20 |aving th|ings on |
|00005bc0| 74 68 65 20 77 69 6e 64 | 6f 77 20 66 72 6f 6d 20 |the wind|ow from |
|00005bd0| 65 61 72 6c 69 65 72 20 | 63 61 6c 6c 73 2e 0a 5c |earlier |calls..\|
|00005be0| 2a 28 45 73 0a 2e 44 73 | 0a 2e 46 64 20 72 65 66 |*(Es..Ds|..Fd ref|
|00005bf0| 72 65 73 68 20 22 22 20 | 5c 2a 6d 0a 2e 46 64 20 |resh "" |\*m..Fd |
|00005c00| 77 72 65 66 72 65 73 68 | 20 77 69 6e 0a 57 49 4e |wrefresh| win.WIN|
|00005c10| 44 4f 57 09 2a 77 69 6e | 3b 0a 2e 44 65 0a 53 79 |DOW.*win|;..De.Sy|
|00005c20| 6e 63 68 72 6f 6e 69 7a | 65 20 74 68 65 20 74 65 |nchroniz|e the te|
|00005c30| 72 6d 69 6e 61 6c 20 73 | 63 72 65 65 6e 20 77 69 |rminal s|creen wi|
|00005c40| 74 68 20 74 68 65 20 64 | 65 73 69 72 65 64 20 77 |th the d|esired w|
|00005c50| 69 6e 64 6f 77 2e 0a 49 | 66 20 74 68 65 20 77 69 |indow..I|f the wi|
|00005c60| 6e 64 6f 77 20 69 73 20 | 6e 6f 74 20 61 20 73 63 |ndow is |not a sc|
|00005c70| 72 65 65 6e 2c 0a 6f 6e | 6c 79 20 74 68 61 74 20 |reen,.on|ly that |
|00005c80| 70 61 72 74 20 63 6f 76 | 65 72 65 64 20 62 79 20 |part cov|ered by |
|00005c90| 69 74 20 69 73 20 75 70 | 64 61 74 65 64 2e 0a 5c |it is up|dated..\|
|00005ca0| 2a 28 45 73 0a 49 6e 20 | 74 68 69 73 20 63 61 73 |*(Es.In |this cas|
|00005cb0| 65 2c 20 69 74 20 77 69 | 6c 6c 20 75 70 64 61 74 |e, it wi|ll updat|
|00005cc0| 65 20 77 68 61 74 65 76 | 65 72 20 69 74 20 63 61 |e whatev|er it ca|
|00005cd0| 6e 0a 77 69 74 68 6f 75 | 74 20 63 61 75 73 69 6e |n.withou|t causin|
|00005ce0| 67 20 74 68 65 20 73 63 | 72 6f 6c 6c 2e 0a 2e 73 |g the sc|roll...s|
|00005cf0| 70 0a 41 73 20 61 20 73 | 70 65 63 69 61 6c 20 63 |p.As a s|pecial c|
|00005d00| 61 73 65 2c 0a 69 66 0a | 2e 46 6e 20 77 72 65 66 |ase,.if.|.Fn wref|
|00005d10| 72 65 73 68 0a 69 73 20 | 63 61 6c 6c 65 64 20 77 |resh.is |called w|
|00005d20| 69 74 68 20 74 68 65 20 | 77 69 6e 64 6f 77 0a 2e |ith the |window..|
|00005d30| 56 6e 20 63 75 72 73 63 | 72 0a 74 68 65 20 73 63 |Vn cursc|r.the sc|
|00005d40| 72 65 65 6e 20 69 73 20 | 63 6c 65 61 72 65 64 0a |reen is |cleared.|
|00005d50| 61 6e 64 20 72 65 70 61 | 69 6e 74 65 64 20 61 73 |and repa|inted as|
|00005d60| 20 69 74 20 69 73 20 63 | 75 72 72 65 6e 74 6c 79 | it is c|urrently|
|00005d70| 2e 0a 54 68 69 73 20 69 | 73 20 76 65 72 79 20 75 |..This i|s very u|
|00005d80| 73 65 66 75 6c 20 66 6f | 72 20 61 6c 6c 6f 77 69 |seful fo|r allowi|
|00005d90| 6e 67 20 74 68 65 20 72 | 65 64 72 61 77 69 6e 67 |ng the r|edrawing|
|00005da0| 20 6f 66 20 74 68 65 20 | 73 63 72 65 65 6e 0a 77 | of the |screen.w|
|00005db0| 68 65 6e 20 74 68 65 20 | 75 73 65 72 20 68 61 73 |hen the |user has|
|00005dc0| 20 67 61 72 62 61 67 65 | 20 64 75 6d 70 65 64 20 | garbage| dumped |
|00005dd0| 6f 6e 20 68 69 73 20 74 | 65 72 6d 69 6e 61 6c 2e |on his t|erminal.|
|00005de0| 0a 2e 44 73 0a 2e 46 64 | 20 73 74 61 6e 64 6f 75 |..Ds..Fd| standou|
|00005df0| 74 20 22 22 20 5c 2a 6d | 0a 2e 46 64 20 77 73 74 |t "" \*m|..Fd wst|
|00005e00| 61 6e 64 6f 75 74 20 77 | 69 6e 0a 57 49 4e 44 4f |andout w|in.WINDO|
|00005e10| 57 09 2a 77 69 6e 3b 0a | 2e 46 64 20 73 74 61 6e |W.*win;.|.Fd stan|
|00005e20| 64 65 6e 64 20 22 22 20 | 5c 2a 6d 0a 2e 46 64 20 |dend "" |\*m..Fd |
|00005e30| 77 73 74 61 6e 64 65 6e | 64 20 77 69 6e 0a 57 49 |wstanden|d win.WI|
|00005e40| 4e 44 4f 57 09 2a 77 69 | 6e 3b 0a 2e 44 65 0a 53 |NDOW.*wi|n;..De.S|
|00005e50| 74 61 72 74 20 61 6e 64 | 20 73 74 6f 70 20 70 75 |tart and| stop pu|
|00005e60| 74 74 69 6e 67 20 63 68 | 61 72 61 63 74 65 72 73 |tting ch|aracters|
|00005e70| 20 6f 6e 74 6f 0a 2e 69 | 20 77 69 6e 0a 69 6e 20 | onto..i| win.in |
|00005e80| 73 74 61 6e 64 6f 75 74 | 20 6d 6f 64 65 2e 0a 2e |standout| mode...|
|00005e90| 46 6e 20 73 74 61 6e 64 | 6f 75 74 0a 63 61 75 73 |Fn stand|out.caus|
|00005ea0| 65 73 20 61 6e 79 20 63 | 68 61 72 61 63 74 65 72 |es any c|haracter|
|00005eb0| 73 20 61 64 64 65 64 20 | 74 6f 20 74 68 65 20 77 |s added |to the w|
|00005ec0| 69 6e 64 6f 77 0a 74 6f | 20 62 65 20 70 75 74 20 |indow.to| be put |
|00005ed0| 69 6e 20 73 74 61 6e 64 | 6f 75 74 20 6d 6f 64 65 |in stand|out mode|
|00005ee0| 20 6f 6e 20 74 68 65 20 | 74 65 72 6d 69 6e 61 6c | on the |terminal|
|00005ef0| 0a 28 69 66 20 69 74 20 | 68 61 73 20 74 68 61 74 |.(if it |has that|
|00005f00| 20 63 61 70 61 62 69 6c | 69 74 79 29 2e 0a 2e 46 | capabil|ity)...F|
|00005f10| 6e 20 73 74 61 6e 64 65 | 6e 64 0a 73 74 6f 70 73 |n stande|nd.stops|
|00005f20| 20 74 68 69 73 2e 0a 54 | 68 65 20 73 65 71 75 65 | this..T|he seque|
|00005f30| 6e 63 65 73 0a 2e 56 6e | 20 53 4f 0a 61 6e 64 0a |nces..Vn| SO.and.|
|00005f40| 2e 56 6e 20 53 45 0a 28 | 6f 72 0a 2e 56 6e 20 55 |.Vn SE.(|or..Vn U|
|00005f50| 53 0a 61 6e 64 0a 2e 56 | 6e 20 55 45 0a 69 66 20 |S.and..V|n UE.if |
|00005f60| 74 68 65 79 20 61 72 65 | 20 6e 6f 74 20 64 65 66 |they are| not def|
|00005f70| 69 6e 65 64 29 0a 61 72 | 65 20 75 73 65 64 20 28 |ined).ar|e used (|
|00005f80| 73 65 65 20 41 70 70 65 | 6e 64 69 78 20 41 29 2e |see Appe|ndix A).|
|00005f90| 0a 67 20 74 68 65 20 72 | 65 64 72 61 77 69 6e 67 |.g the r|edrawing|
|00005fa0| 20 6f 66 20 74 68 65 20 | 73 63 72 65 65 6e 0a 77 | of the |screen.w|
|00005fb0| 68 65 6e 20 74 68 65 20 | 75 73 65 72 20 68 61 73 |hen the |user has|
|00005fc0| 20 67 61 72 62 61 67 65 | 20 64 75 6d 70 65 64 20 | garbage| dumped |
|00005fd0| 6f 6e 20 68 69 73 20 74 | 65 72 6d 69 6e 61 6c 2e |on his t|erminal.|
|00005fe0| 0a 2e 44 73 0a 2e 46 64 | 20 73 74 61 6e 64 6f 75 |..Ds..Fd| standou|
|00005ff0| 74 20 22 22 20 5c 2a 6d | 0a 2e 46 64 20 77 73 74 |t "" \*m|..Fd wst|
|00006000| 4d 61 6e 75 61 6c 2f 64 | 6f 63 2e 49 49 00 00 00 |Manual/d|oc.II...|
|00006010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006060| 00 00 00 00 30 30 30 36 | 36 34 20 00 30 30 30 31 |....0006|64 .0001|
|00006070| 34 37 20 00 30 30 30 33 | 30 33 20 00 30 30 30 30 |47 .0003|03 .0000|
|00006080| 30 30 30 34 34 36 37 20 | 30 34 31 30 33 37 32 32 |0004467 |04103722|
|00006090| 34 33 32 20 30 30 37 30 | 32 36 00 20 20 00 00 00 |432 0070|26. ...|
|000060a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006200| 2e 5c 22 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |.\" Copy|right 19|
|00006210| 38 30 20 4b 65 6e 6e 65 | 74 68 20 43 2e 20 52 2e |80 Kenne|th C. R.|
|00006220| 20 43 2e 20 41 72 6e 6f | 6c 64 20 61 6e 64 20 54 | C. Arno|ld and T|
|00006230| 68 65 20 52 65 67 65 6e | 74 73 20 6f 66 20 74 68 |he Regen|ts of th|
|00006240| 65 0a 2e 5c 22 20 55 6e | 69 76 65 72 73 69 74 79 |e..\" Un|iversity|
|00006250| 20 6f 66 20 43 61 6c 69 | 66 6f 72 6e 69 61 2e 20 | of Cali|fornia. |
|00006260| 20 50 65 72 6d 69 73 73 | 69 6f 6e 20 69 73 20 67 | Permiss|ion is g|
|00006270| 72 61 6e 74 65 64 20 74 | 6f 20 66 72 65 65 6c 79 |ranted t|o freely|
|00006280| 0a 2e 5c 22 20 64 69 73 | 74 72 69 62 75 74 65 20 |..\" dis|tribute |
|00006290| 63 75 72 73 65 73 20 61 | 6e 64 20 69 74 73 20 64 |curses a|nd its d|
|000062a0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 70 72 6f |ocumenta|tion pro|
|000062b0| 76 69 64 65 64 20 74 68 | 61 74 20 74 68 69 73 0a |vided th|at this.|
|000062c0| 2e 5c 22 20 6e 6f 74 69 | 63 65 20 69 73 20 6c 65 |.\" noti|ce is le|
|000062d0| 66 74 20 69 6e 74 61 63 | 74 2e 0a 2e 5c 22 0a 2e |ft intac|t...\"..|
|000062e0| 5c 22 09 40 28 23 29 64 | 6f 63 2e 49 49 09 36 2e |\".@(#)d|oc.II.6.|
|000062f0| 31 20 28 42 65 72 6b 65 | 6c 65 79 29 20 34 2f 32 |1 (Berke|ley) 4/2|
|00006300| 33 2f 38 36 0a 2e 5c 22 | 0a 2e 44 73 0a 2e 46 64 |3/86..\"|..Ds..Fd|
|00006310| 20 63 62 72 65 61 6b 20 | 22 22 20 5c 2a 6d 0a 2e | cbreak |"" \*m..|
|00006320| 46 64 20 6e 6f 63 62 72 | 65 61 6b 20 22 22 20 5c |Fd nocbr|eak "" \|
|00006330| 2a 6d 0a 2e 46 64 20 63 | 72 6d 6f 64 65 20 22 22 |*m..Fd c|rmode ""|
|00006340| 20 5c 2a 6d 0a 2e 46 64 | 20 6e 6f 63 72 6d 6f 64 | \*m..Fd| nocrmod|
|00006350| 65 20 22 22 20 5c 2a 6d | 0a 2e 44 65 0a 53 65 74 |e "" \*m|..De.Set|
|00006360| 20 6f 72 20 75 6e 73 65 | 74 20 74 68 65 20 74 65 | or unse|t the te|
|00006370| 72 6d 69 6e 61 6c 20 74 | 6f 2f 66 72 6f 6d 20 63 |rminal t|o/from c|
|00006380| 62 72 65 61 6b 20 6d 6f | 64 65 2e 0a 54 68 65 20 |break mo|de..The |
|00006390| 6d 69 73 6e 61 6d 65 64 | 20 6d 61 63 72 6f 73 0a |misnamed| macros.|
|000063a0| 2e 46 6e 20 63 72 6d 6f | 64 65 0a 61 6e 64 0a 2e |.Fn crmo|de.and..|
|000063b0| 46 6e 20 6e 6f 63 72 6d | 6f 64 65 0a 61 72 65 20 |Fn nocrm|ode.are |
|000063c0| 72 65 74 61 69 6e 65 64 | 20 66 6f 72 20 62 61 63 |retained| for bac|
|000063d0| 6b 77 61 72 64 73 20 63 | 6f 6d 70 61 74 69 62 69 |kwards c|ompatibi|
|000063e0| 6c 69 74 79 0a 77 69 74 | 68 20 65 61 6c 69 65 72 |lity.wit|h ealier|
|000063f0| 20 76 65 72 73 69 6f 6e | 73 20 6f 66 20 74 68 65 | version|s of the|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.